Subject | Re: [firebird-support] empty string=null ? |
---|---|
Author | Martijn Tonies |
Post date | 2006-06-26T13:54:43Z |
Bill,
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> Some said in old sql standard, zero-length (empty) string will beconverted to
> null, eg,This isn't true. The SQL standard differs between NULL and ''.
> update foo set bar=''See above.
> will effectively become
> update foo set bar=null
> Is this true for FB1.5 and FB2 ?No, Fb follows the SQL standard. NULL and '' are different.
> A related question, in DDL, isMartijn Tonies
> a varchar(10) default ''
> equivalent to
> bar varchar(10) default null
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com