Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
acdacd
Yak Posting Veteran
63 Posts |
Posted - 2005-08-14 : 03:41:02
|
| I have a table TableACol PK ColA1 4562 2453 ged4 ancThe colA is string.If i want to select tableA and get result as follow order. How to do ?4 anc3 ged1 4562 245be a hardworking people!! |
|
|
Stalker
Yak Posting Veteran
80 Posts |
Posted - 2005-08-14 : 03:53:22
|
| select * from table1 order by ColA descis it ? |
 |
|
|
acdacd
Yak Posting Veteran
63 Posts |
Posted - 2005-08-14 : 05:59:59
|
| so simple!But i want to know how to determined the order between number and string within string column by using the "order"? If I the string is not english but other asian font, then how does it affect the result?be a hardworking people!! |
 |
|
|
Stalker
Yak Posting Veteran
80 Posts |
Posted - 2005-08-14 : 07:36:21
|
| at least russian letters behave in the same way... |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-08-16 : 01:18:25
|
| It is order by the ascii value of the stringSo the ordered result depends on the ascii valueMadhivananFailing to plan is Planning to fail |
 |
|
|
acdacd
Yak Posting Veteran
63 Posts |
Posted - 2005-08-16 : 06:20:56
|
| OIC, thanksbe a hardworking people!! |
 |
|
|
|
|
|