Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correlated subquery thanks
Message
De
22/03/2021 13:12:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/03/2021 12:31:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01679124
Message ID:
01679234
Vues:
35
>>For logical fields, I'm partial to just using the field name (for .T.) or NOT the fieldname (for .F.). That's true for me everywhere, not just in SQL.
>
>Typing impaired and lazy me was doing the same early on.
>Then a chunk of SQL had to be made runnable on DB2, back then having the idea to handle it by numeric 1 and 0.
>Back then Q'nD enhancement with preprocessor driven TRUE and FALSE.
>
>While today I might fall back to lazy leaving out "= .t.", falsy often either handled via empty(), "!=" or "= .F:", as those will incur less effort to modify to support backends without logical data type.

SQL server doesn't lack the logical data type. It's only unable to handle it as such. It treats it as something that can be compared with 1 or 0 and then the result of that comparison will be a logical value, but the logical field per se can't be used in an expression. It's an orphan.

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