Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl DBI and NULL vales from MSSQL

by thabenksta (Pilgrim)
on Apr 30, 2001 at 21:07 UTC ( [id://76657]=note: print w/replies, xml ) Need Help??


in reply to Perl DBI and NULL vales from MSSQL

Is it common to write a function to compare all each field fetched to a undef and replace the literal value with "NULL" or such.. Before you print out a value?

You shouldn't have to do that. It should just return NULL automatically.

I might be able to help more if you showed me the code you are working with.

-thabenksta
my $name = 'Ben Kittrell'; $name=~s/^(.+)\s(.).+$/\L$1$2/g; my $nick = 'tha' . $name . 'sta';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://76657]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-20 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found