Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equiv. of EMPTY() in SQL Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01247781
Message ID:
01247965
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform