Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: "undef" is not NULL and what to do about it

by runrig (Abbot)
on Feb 21, 2013 at 00:06 UTC ( #1019867=note: print w/ replies, xml ) Need Help??


in reply to Re^2: "undef" is not NULL and what to do about it
in thread "undef" is not NULL and what to do about it

an empty string IS a NULL. There is no difference at all.

I think the point is you can not select the data using, e.g.WHERE colname = ''.

So how do you represent unknown values? By using a default "UNKNOWN"?

Sometimes you know what the value is, and it's blank. There's just too many ways to look at it.

.


Comment on Re^3: "undef" is not NULL and what to do about it
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2015-07-04 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls