DBMS/Oracle

[펌] ORA-01403 no data found

smok95 2008. 4. 15. 20:04
반응형

ORA-01403 no data found

Cause: In a host language program, all records have been fetched. The return code from the fetch was +4, indicating that all records have been returned from the SQL query.

Action: Terminate processing for the SELECT statement.

Pro*C 프로그래밍에서
Host Array를 사용하여 SELECT된 결과 값을 받아낼
Buffer의 총 행이 x Rows이고 결과가 y Rows 단(x > y (y != 0))이면
ORA-01403에러를 리턴한다.
꼭 sqlca.sqlerrd[2]의 결과 행수를 확인해야 한다.

출처 ㅣ http://scruz.tistory.com/entry/ORA-01403

반응형