Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null Logical
Message
De
24/09/1998 01:44:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/09/1998 22:20:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00140181
Message ID:
00140225
Vues:
27
>When you do a SELECT you can represent a date with {}, a numeric with 0000.0 and a character with ''. How can I represent a null logical column?
>
>
>Thanks
John,
For a logical column you can use .f. (but it's .f. not null). To make it .null. you could do something like iif(recno()=1,.f.,.null.) as LogFld where in expression the first selected would be recno()=1 (SQL should catch it to determine type of field). Or you could first do a select into a true cursor, use again, alter table to add logical column (safer and cleaner).
select * from mytable ;
  where .t. ;
  into cursor tmp
use (dbf("tmp")) in 0 again alias altered
alter table altered add column mylogical l
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform