declare
doesExists number:=0;
begin
select count(1) into doesExists from tab where tname = 'EOSS2G_GREEN_RLDEP';
if doesExists = 1
then
execute immediate 'drop table EOSS2G_GREEN_RLDEP';
--execute immediate 'create table EOSS2G_GREEN_RLDEP as select * from EOSS2G_RLDEP';
else
execute immediate 'create table EOSS2G_GREEN_RLDEP as select * from EOSS2G_RLDEP';
end if;
end;
/
내가 얻는 오류 메시지는 다음과 같습니다.
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
& = - + ; < / > at in is mod remainder not rem
<> or != or ~= >= <= <> and or like like2
like4 likec between || multiset member submultiset
Position: 28, Line: 2, Column: 21
SQL: declare
doesExists number:=0
^-- error here -- ORA-06550: line 2, column 21:
온라인에서 다양한 솔루션을 조사했지만 여전히 문제 해결에 도움이되지 않았습니다.
누군가가이 문제를 해결하도록 도울 수 있습니까?
사실,이 특정 오류는 데이터베이스 때문이 아니라 내가 작업중인 플랫폼 때문입니다. 위의 명령문을 커밋하려면 플랫폼에서 SQL 블록 구분 기호를 명시 적으로 지정해야합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다