Subject Re: [firebird-support] String Concatenation with null field
Author Martijn Tonies
> I'm with a new problem with concatenation now!
> If I try to concatene two string fields and one of them is NULL the
> concatenation result is NULL :-(
> How can I prevent this? I need to create some sql scripts to concatene
> some fields and I'm not able do know if the field is NULL or not.

Use COALESCE to turn the NULL into something else.

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Upscene Productions
Database development questions? Check the forum!