Quantcast
Channel: Product Communities
Viewing all articles
Browse latest Browse all 105279

Forum Post: Checking for empty fields with a SQL expression: '[TABLE.Field] NULL' will fail in a SQL enterprise database

$
0
0

A programmer just pointed something out.  In a SQL query, to check if a field is null you could say something like this:

                [TABLE.Field] <> NULL

That will work fine in an Access (*.GPJ) project.  It will not work in a SQL enterprise database.  It should be rewritten like this:

              [TABLE.Field] is not NULL

This expression will work in both .GPJs and SQL enterprise databases.

 


Viewing all articles
Browse latest Browse all 105279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>