Null not equal to '' (empty)
От | Ajit Aranha |
---|---|
Тема | Null not equal to '' (empty) |
Дата | |
Msg-id | 20020920060916.42881.qmail@web14104.mail.yahoo.com обсуждение исходный текст |
Ответы |
Re: Null not equal to '' (empty)
Re: Null not equal to '' (empty) Re: Null not equal to '' (empty) |
Список | pgsql-sql |
Why is ''(empty) not equal to null? Its a major headache when porting from other RDBMS like Oracle. Anyone knows any easy workarounds? i.e. if you use: create table tbl ( c1 varchar(5)); insert into tbl values (''); select * from tbl where c1 is null; will return zero rows. Also try this: select TO_DATE('','DD-MM-YY'); and this TO_DATE('','DD-Mon-YY'); ;-) -Ajit (ajit_aranha@rocketmail.com) __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com
В списке pgsql-sql по дате отправления: