Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL problem, How can use where ORDER BY CONVERT(int, fie
Message
 
 
To
15/03/2012 02:17:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01538287
Message ID:
01538416
Views:
34
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform