Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select to integer
Message
 
 
À
09/10/2001 11:09:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00565961
Message ID:
00565974
Vues:
28
>When SELECTing into a cursor, is there a way to convert to Integer? Int(MyNumericField) seems to create a field of type N(10).
>
>Hilmar.

No direct way. If you want to have Integer field, which is not in original table, you can do:
create cursor curTemp (MyIntField I)
insert 0 into curTemp

select * from myTable, curTemp into ...

Otherwise you have to ALTER TABLE after it's created.
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