티스토리 뷰
update t_am_asst as t
set worktype_cd = tcc.cd
from t_cm_code tcc, t_am_asst_fclty taaf
where tcc.cd_nm = taaf.worktype_nm and tcc.grp_cd = 'WTYPE'
and t.asst_sn = taaf.asst_sn
set에 t.worktype.cd라고 쓰면 다음 에러가 발생한다. t.을 제거하고 하면 잘 실행된다.
ERROR: 오류: "t" 칼럼은 "t_am_asst" 릴레이션(relation)에 없음
LINE 2: set t.worktype_cd = tcc.cd
'Skill > postgreSQL' 카테고리의 다른 글
[SQL] COALESCE 함수로 NULL 값 변환하기 (1) | 2022.10.05 |
---|---|
[postgresql] comment 조회 (0) | 2021.06.29 |
[postgresql] pg_dump backup/restore (0) | 2021.04.07 |
[postgresql] jdbc 다운로드 (0) | 2021.04.06 |
[postgresql] odbc driver설치 (0) | 2021.04.06 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- oracle
- DatePicker
- JQuery
- lombok
- CSS
- springboot
- getter
- $.each
- ul li로 테이블
- QueryDSL
- setter
- PostgreSQL
- Keycode
- spring
- draw.io
- sumifs
- devtools
- 여러 컬럼 update
- 프로젝트명변경
- caniuse
- Javascript
- element위치
- $.extend
- border-collapse
- 정규식
- @ExceptionHandler
- excel
- object key
- 전후방탐색
- 진열사랑
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함