오라클 버전에서 DB2로 변환하고 있는데 "SENSITIVE 커서 "SQL_CURSN300C1"은(는) 지정된 SELECT문에 정의할 수 없습니다."라는 에러 메세지가 뜨네요.
select a.code1 as code1, a.code2 as code2, a.code3 as code3, a.code4 as code4,a.code_name as code_name,
a.flag as flag,a.update_id as update_id,a.update_dt as update_dt,b.member_kor_name as update_name
from code a,member b
where a.code1 <> '0'
and a.code2 = '0'
and a.update_id = b.member_id
order by a.code_name
입니다.
이 sql을 다음과 같이 수정하니 오류는 안납니다.
뭐가 문제인가요?
select code1,code2,code3,code4,code_name,flag,update_id,update_dt,'' as member_kor_name
from code
where code1<>'0'
and code2='0'
order by code_name
|