Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL problem, How can use where ORDER BY CONVERT(int, fie
Message
From
14/03/2012 06:16:42
 
 
To
14/03/2012 05:57:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01538287
Message ID:
01538291
Views:
42
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform