2011-03-02 5 views
1

SQL Dveloper IDE를 사용하여 Oracle에서 함수를 프로그래밍하고 있습니다. 기능은 잘 작동, 나는이 문장 추가 할 때 :PL/SQL 오라클 힌트가없는 오류

INSERT INTO bl_transaction 
VALUES(generated_id,'0','0','Y',NOW(),'0',NOW(),'0',CAST(dbms_random.value(100,100000) as integer), tuple.billing_id, tuple.created, sys_guid(), first_invgroup, 'Y', 'N', tuple.guid, NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); 

이 컴파일러는 나에게 hintless 오류를 줄을 :

ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed

나는 가능한 모든 유형 불일치, 인수의 수 등을 검토 한

어떻게 해결할 수 있습니까?

답변

5

NOW()는 현재 날짜를 얻으려면 지원되는 Oracle 함수가 아닙니다. & 시간 - SYSDATE입니다.

INSERT INTO bl_transaction 
VALUES(generated_id,'0','0','Y',SYSDATE,'0',SYSDATE,'0',CAST(dbms_random.value(100,100000) as integer), tuple.billing_id, tuple.created, sys_guid(), first_invgroup, 'Y', 'N', tuple.guid, NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); 

을하지만 당신은 또한이 : 시도

  • 값으로

...을 tuple.billing_id tuple.created 그러나이 어디에서 오는지 포함하지 않았다 .

셋째, 삽입되는 열의 목록을 제공하지 않았기 때문에 쿼리에 삽입하려는 테이블의 열 수를 지정했는지 알 수 없습니다. 또는 각 위치의 데이터 유형에 대한 통찰을 제공합니다.