develooper Front page | perl.dbi.users | Postings from April 2008

Returning null from query

Thread Next
From:
BCFD36
Date:
April 7, 2008 23:35
Subject:
Returning null from query
This should be simple. Either it can't be done, I'm using the wrong
syntax, or using the wrong approach.

I'm running a perl script that queries the db, and gets back an
answer. That works just fine. However, on occasion one of the returned
values is null since it is null in the data base. I tried sending a
"set null null" the same way I sent the select command, but it
generated an error:"missing or invalid option. Were I directly in
sqlplus, I could say "set null null" and a string with "null" in it
would be returned.

Any suggestions?

D. Scruggs
Lockhkeed Martin, Sunnyvale Ca.


Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About