DQL: Oracle vs MSSQL

The following DQL returns no results when tested against an Oracle database. However, expected results were returned when testing against MSSQL.

select dos_extension, name from dm_format where dos_extension is not nullstring and dos_extension ”

The following DQL works on both databases.

select dos_extension, name from dm_format where dos_extension is not nullstring

Needless to say, DQL and SQL are similar in that they behave differently in different databases.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: