Search Postgresql Archives

Re: How to retrieve rows with empty value in numeric(12,8) columns

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

 



Hi,
 
As I understand it, your first query returned nothing because NULL is
simply "unknown" - and since you can never know what it's equal to,
looking for equality with NULL will never find anything.
 
Yes, you can basically think of NULLs in SQL as having the same role of zeros in division. They make no sense in principle and must be treated apart. I seem to recall Oracle treating empty strings as NULLs, but this is very dangerous. A NULL means nothing has been assigned, i.e. data is not stated in any way, while an empty string IS an assignment. There is a difference between "nothing" and "this" (no matter what "this" is).

Bèrto

[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