Firebird DocsetFirebird Database DocsFirebird Null Guide → Setting a field or variable to NULL
Firebird home Firebird home Prev: Testing if something is NULLHome: Firebird DocsetUp: Firebird Null GuideNext: Dealing with NULLs

Setting a field or variable to NULL

Fields and variables can be set to NULL using the same syntax as for regular values:

- “Wait a minute... and you said that MyField = NULL was illegal!

That's right... for the comparison operator=” (at least in pre-2.0 versions of Firebird). But here we are talking about “=” as an assignment operator. Unfortunately, both operators have the same symbol in SQL. In assignments, whether done with “=” or with an insert list, you can treat NULL just like any value - no special syntax needed (or indeed possible).

Prev: Testing if something is NULLHome: Firebird DocsetUp: Firebird Null GuideNext: Dealing with NULLs
Firebird DocsetFirebird Database DocsFirebird Null Guide → Setting a field or variable to NULL