Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to force SQL select to make an const integer column?
Message
De
26/02/2000 17:46:50
 
 
À
26/02/2000 13:43:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00338053
Message ID:
00338085
Vues:
12
>Dear All,
>
>I would like to do something like this:
>
>select ..., 0 ....
>
>
>I want the select statement to make the column of zero of integer type. But istead it gives me a 1 digit wide numeric column.
>
>Does anybody know the right syntax?
>
>TIA
>
>bb

"Integer" is not an available VFP memvar type, so I don't think it's possible to force creation of an integer column in the column list of a SELECT - SQL. Integer exists only in tables/cursors, so you have to link/join one in to your SELECT to get one in your output. Andrew's technique is as good as any I've seen to accomplish that.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform