Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Check Constraint for an
Message
De
13/10/2004 06:18:58
 
 
À
13/10/2004 05:49:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00950957
Message ID:
00950962
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
>Hello everyone,
>
>I am trying to write my first check constraint in SQL server. I want to make sure that the column in question is not empty. In Fox, I would say something like :-
>
>
>And Not Empty(tablename.columnname)
>
>
>What is the best way to express this in SQL server using T-SQL ?
>
>Thank you!
>
>Angie.

On VFP EMPTY() ignore spaces chr(9|10|13).

For a zero lengh string ( ignoring spaces ):
AND LEN(tablename.columnname)>0
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform