select yy_date,c_id,cw_card from destine order by yy_date desc,int(cw_card)因为列cw_card是varchar类型,但是我又想按大小排序,怎么办。
不要告诉我改数据库,因为改的话有很多地方要改
不要告诉我改数据库,因为改的话有很多地方要改
解决方案 »
- 题目内容进去看 - -
- 在sql server 2000中,有两个datatime类型的字段,我想得到它们的时间差,怎么办?
- 求一条sql语句
- sql server 2005 代理调用 ssis问题
- select * from (select top 1 a from A) a,(select top 1 b from B where xx='xx') b的问题
- SQL2005能不能和SQL2000装在同一台电脑上?有没有冲突呢?
- 更改表中的某个字段的数据类型怎么用SQL语句实现?急!在线等!
- 这个sql语句怎莫写
- 在存储过程中select得到一个视图后,如何继续在存储过程中对得到的记录做处理
- 在“英文LINUX6。1+英文ORACLE8。1。6”环境下,是否能在数据库中录入“中文“记录,并能在网页上正确显示汉字!
- 如何走出海量数据及访问量压力困境(二)
- 怎么查询出一张表中型号相同的所有记录?
order by yy_date desc,convert(int,cw_card)
order by yy_date desc,convert(int,cw_card)
SQL codeselect yy_date,c_id,cw_card from destine order by yy_date desc,cast(cw_card as int)
select yy_date,c_id,cw_card from destine where isnumeric(cw_card) = 1 order by yy_date desc,convert(int,cw_card) desc
有时间去看看本人纯C语言开发的网站长长见识吧: http://cangzhuo.com
想学习一下
能不能讲一下你的方法?