Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equiv. of EMPTY() in SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01247781
Message ID:
01247965
Views:
11
Hi,

>What is the equiv. of EMPTY() for writing SQL statements in SQL server?

Depends on what you store. If you don't pass a value, for example, SQL servers set the field to NULL. Therefore in most case, it would be FIELD IS NULL or FIELD IS NOT NULL. For strings you could check the length. However, be aware that empty strings are not supported on all SQL servers like Oracle.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform