티스토리 뷰
COALESCE(A, B);
A값이 NULL일 경우 B로 반환합니다.
select category_id, description, COALESCE(description, 'empty') as COALESCE_RESULT from categories;
'DataBase > PosegreSQL' 카테고리의 다른 글
Database / PostgreSQL 이번달의 첫번째 날과 마지막 날 구하기. (0) | 2019.07.14 |
---|---|
Database / PostgreSQL 문자열 결합하기. (0) | 2019.07.14 |
Database / PostgreSQL COALESCE 사용하기(오라클 NVL) (0) | 2019.07.14 |
Database / PostgreSQL UNION 사용하기 (0) | 2019.07.14 |
Database / PostgreSQL ROWNUM 사용하기 (0) | 2019.07.14 |
Database / PostgreSQL 테이블에 새로운 행을 삽입하기. (0) | 2019.07.05 |
- TAG
- coalesce, NVL, PostgreSQL
댓글
공지사항
최근에 올라온 글
- Total
- 71,403
- Today
- 5
- Yesterday
- 151
링크
TAG
- DevExpress
- winform
- DataGridView
- database
- gridview
- ContextMenuStrip
- CheckedListBoxControl
- mariadb
- RepositoryGridLookUpEdit
- 비동기
- EditMask
- BAR
- c#
- TextEdit
- CheckEdit
- node
- SQLite
- Chart
- ComboBox
- PostgreSQL
- ComboBoxEdit
- Datasource
- LookUpEdit
- GridControl
- TreeView
- task
- TreeList
- Await
- DateEdit
- 전체 선택