Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select expression for both VFP and SQL DB
Message
De
29/03/2019 13:10:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667660
Message ID:
01667720
Vues:
36
>'true' and 'false' are literal values for bit but it only works when comparing to bit

The real shortcoming of bit values in TSQL is that you can't use them in expressions unless a part of comparison, i.e.
when a and b then 100 else when a and not b then 50 ...
doesn't work, a and b, bit fields, are not recognised as boolean values in a logical expression, you have to put it as
when a=1 and b=1 then 100 else when a=1 and  b=0 then 50 ...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform