Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL problem, How can use where ORDER BY CONVERT(int, fie
Message
 
 
À
15/03/2012 02:17:01
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:
01538416
Vues:
33
>>>Hi all,
>>> I want to use sql to convert int to order by like sql server
>>>
SELECT * FROM apos WHERE   (scode >='999') and (scode<='11015') ORDER BY CONVERT(int, scode)
>>>But visual foxpro can't this function , how can i do?
>>>
>>>
>>> Thank you ~~
>>
>>select * from (select *, cast(sCode as Int)  AS intsCode from ... where ...) X ORDER BY intsCode
>
>Why use a derived table when you don't need any

To be sure it works.
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