나는 SQL에 익숙하지 않으며 코드에 문제가있다. 나는 테이블의 한 줄을 복사하고 레코드의 일부를 바꾸려고 노력했다. 그러나, 나는이 오류가 계속 :SQL 복사 및 바꾸기
ORA-00907: missing right parenthesis
다음 코드는 오류를 제공합니다
내가 뭐하는 거지 다음 코드를 사용하여 테이블 mi_structure이select *
from mi_structure
where parent_mi_id like 'MIPFV%29'
and sysdate between startdate and enddate;
PARENT_MI_ID || CHILD_MI_ID || STARTDATE || ENDDATE || MUTNR
MIPFV_POOL 29 || CSLLXXXX.USD.GR || 42917 || 36526 || 11
과 같은
insert into mi_structure
select replace parent_mi_id, (child_mi_id,'GR','GR_V') child_mi_id, startdate, enddate, mutnr
from mi_structure
where parent_mi_id like 'MIPFV%29'
and sysdate between startdate and enddate;
잘못된?
'(child_mi_id, 'GR', 'GR_V')'는 함수처럼 작성되었지만 작성되지 않았습니다. 아마도이 오류가 발생합니다. –
대체 기능을 사용하려고합니까? 그것의 사용은 REPLACE ('Atestword', 'word', 'Phrase'); = AtestPhrase – Moudiz