database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
ㆍInformix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Informix Q&A 2401 게시물 읽기
No. 2401
[Q] Update 문법에러가 납니다..
작성자
김태경(ktk331)
작성일
2007-08-16 16:13
조회수
8,834

* 인포믹스 DB를 사용중입니다. 아래처럼 했는데 자꾸 문법에러가 나네요.


update tb_cr_quar_tar_prsn original

set staff_no = (select max(b.staff_no)

                from outer tb_ci_staff b

                where original.appr_no = b.appr_no

                and original.resd_reg_no = b.resd_reg_no

                and trim(original.staff_nm) = trim(b.staff_nm)

                and b.staff_no = (select max(staff_no)

                                  from tb_ci_staff

                                  where resd_reg_no = original.resd_reg_no)

               )

where original.manage_no in (select temptab.manage_no

                             from TABLE (MULTISET(select a.appr_no as appr_no

                                                       , a.manage_no as manage_no

                                                       , b.staff_no as staff_no

                                                  from tb_cr_quar_tar_prsn a, outer tb_ci_staff b

                                                  where a.appr_no = b.appr_no

                                                  and a.resd_reg_no = b.resd_reg_no

                                                  and trim(a.staff_nm) = trim(b.staff_nm)

                                                  and b.staff_no = (select max(staff_no)

                                                                    from tb_ci_staff

                                                                    where resd_reg_no = a.resd_reg_no)

                                                  )

                                        ) temptab

                            )

이 글에 대한 댓글이 총 1건 있습니다.

update 구문의 table name에 alias 를 사용하게 되면 syntax error가 납니다..


그리고 그외에도 outer join 사용구문에도 syntax error가 있는것 같네요..


아래의 site에서 informix  sql syntax guide를 참조 하시기 바랍니다..


http://www-306.ibm.com/software/data/informix/pubs/library/

moon1200님이 2007-10-04 16:56에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2404레드햇 9.0 용 인포믹스 구해요
장세덕
2007-09-05
8436
2403인포믹스 설치문의입니다.
장세덕
2007-09-03
8044
2402view 생성시 에러가 납니다.. ㅜㅡ [1]
최세준
2007-08-20
8858
2401[Q] Update 문법에러가 납니다.. [1]
김태경
2007-08-16
8834
2400Files 에 파일들 전부 없어졌네요... ^^
정인기
2007-08-16
7498
2399인포믹스 start 시, Bad primary Chunk 에러 질문입니다...... [1]
김동성
2007-08-14
9697
2398Table Create 추가질문입니다... [1]
최세준
2007-08-07
9071
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.024초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다