Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function like VFP Empty
Message
 
 
À
05/10/2001 17:31:52
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00565022
Message ID:
00565031
Vues:
20
You can use
Select * from Table
where Field1 is not null and LEN(RTRIM(Field1)) > 0
   or
Select * from Table
where LEN(RTRIM(ISNULL(Field1, ''))) > 0
>Is there any function in SQL 7 that works like VFP EMPTY(). OR can I create one that I can use in a select statement.
>
>I have been doing this:
>
>Select * from Table
>where Field1 is not null and
>field 1 <>''
>
>Hope I can do this:
>
>Select * from Table
>where not empty(Field1)
>
>Thank You
>Miles
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform