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 05:57:30
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:
01667673
Vues:
67
J'aime (1)
>Hi,
>
>I have an expression that works SQL Server DB:
>
>select  CAST(0 AS BIT) AS MYFIELD
>
>
>Of course the above will not work for VFP. Is there a way to change the expression above that it would create a calculated logical field in VFP as well as SQL DB?

select .f. as myfield

There are no bit constants in TSQL, i.e. you can't have a bit expression there, you must cast it. So there's no way to have the same expression in VFP SQL and TSQL for a logical/bit value.

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