Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forcing type in SQL
Message
 
 
À
06/01/1999 15:43:58
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00173132
Message ID:
00173353
Vues:
19
>>>>Is there some way to force the type of field in a table created by SQL? I know with currency, you can do $0.00 AS ... But what about the other types.
>>>>
>
>CREATE CURSOR IntegerCursor (Field1 I) && or any type you wish.
>APPEND BLANK
>
>SELECT SomeFieldNames, Field1 AS MyNewFieldOfAnyType ;
> FROM SomeTable, IntegerCursor ;
> INTO CURSOR Result
>
>No join condition required. Does that work for you?

Interesting, but I think it's simpler just to alter the table.

Thanks,

-Michelle
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform