Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL problem, How can use where ORDER BY CONVERT(int, fie
Message
De
14/03/2012 06:16:42
 
 
À
14/03/2012 05:57:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01538287
Message ID:
01538291
Vues:
43
if i use the follow code, it will no data... Due to my data structure Scode is varchar... So i want convert to int .
But i go to visual Foxpro use the follow 2. command , it has result ?
So i don't know how can do it?

Scode
-------
0
999
11001
11015
1.
SELECT cast(sCode as int) as xx FROM apos WHERE   (scode >='999') and (scode<='11015') order by xx 


2.
select cast(Scode,int) from apos where scode='11001' ORDER BY s
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform