나는 begin
과 end
을 사용하여 모든 것을 시도하지만 작동하지 않는다. 어떻게 해결할 수 있습니까?ORA-00936 : 표현이 없습니다. 왜 내가이 메시지를받는거야?
select
case
when exists
(select ORG_UNIT_NAME from aaa.bbb
where ORG_UNIT_NAME ='ccc' and created_Date=to_date('01/11/2012','dd/mm/yyyy'))
then
update aaa.bbb
set PROJECT_QUOTA=555 where ORG_UNIT_NAME ='ccc' and created_Date=to_date('01/11/2012','dd/mm/yyyy')
else
'asd'
end as exist_
from dual
내가 'ddd'를 사용하는 경우 그 대신에 작업을 업데이트하는 대신 작동하지 않는 이유는 무엇입니까?
존재하는 경우 업데이트하고 싶습니다. –
정말 알고 싶지만 오라클은 예외를 만들지 않을 것입니다. 적절한 구문을 사용해야합니다. –