Oracle에 익숙하며이 문제가 발생했습니다. 절차에 넣을 때 Oracle Statement가 작동하지 않습니다.
는이 같은 절차 생성 :CREATE OR REPLACE PROCEDURE getArt
as
begin
select ar.artTitle, ar.artContent, ar.DateCreated, ar.artCategory, ac.accName
from hng_art ar
join HNG_ACCOUNTS ac
on ar.accNo = ac.accNo
order by ar.artNo desc
end getArt;
내가 독립적으로 SELECT 문을 실행하려고하고 일했다. 그러나, 내가 그것을 절차에 넣었을 때. 나는 일하지 않았다. "GETART"에 대한
오류
ERROR at line 4: PL/SQL: SQL Statement ignored
ERROR at line 4: PL/SQL: ORA-00933: SQL command not properly ended
ERROR at line 5: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ;
당신에게
보기를 전환했는데 저에게 효과적이었습니다. 조언 해 주셔서 감사합니다. 더 공부하겠습니다. – hngdev