Search Postgresql Archives

Re: postgresql vs mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris wrote:

It's not an oddity.

An empty string is a KNOWN value. You know exactly what that value is - it's an empty string.

A NULL is UNKNOWN - it doesn't have a value at all.


Just to expand on that (and to drag this thread out a little longer), i find that a pretty good way to get across this difference is to refer to it as *the* empty string. I prefer this description because it is implicit that it is still a string. NULL has no type, regardless of the column it is inserted into. Thus, the empty string is NOT NULL.

brian


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux