Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> OCI question: about null string
Dear all,
This is a question about OCI.
I have a field of VARCHAR typed, and it can be null or empty string. I write a OCI function using C language to select this field value. If the field is null, or empty string, I always get a error "ORA-01405: fetched colum value is NULL". So I have to use something like "NVL(the_field, '-9')" to get an alternate string. But here is it possible to let OCI just put a empty string in buffer (char [] typed). I tried "NVL(the_field, '')", it didn't work.
Thanks in advance.
Evan
Received on Wed Nov 27 2002 - 21:47:47 CST