Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create an Integer field on the fly
Message
 
 
À
20/06/2000 15:31:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00382290
Message ID:
00382375
Vues:
17
>Basically what I am saying here is:
>1) Certain data types (integer, any type field with null) are impossible to create directly in a select statement.
>2)But you can create a cursor on the fly that contains a field of the right type. Do a join onto this cursor and you get get fields of the type you could otherwise select.

Gar,

So are you saying that there is no way to create Integer field in simple SQL statement without creating cursor prior to select statement?

There is another way to handle this situation:
1) Firstly, make our select statement
2) Secondly, issue ALTER TABLE command to change output structure.

We successfully use this technique to get rid off null values.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform