如何排序?(很滑稽,但是实际情况如此) select * from 表order by case when code is not null then code else 'zzzzzzz' end 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try:select * from table where code is not null order by code unionselect * from table where code is null order by id select * from 表 order by isnull(code,'zzzzzzzz'),id select * from 表 order by isnull(code,'zzzzzzzzzzz'),id order by case when 1=isnumeric(code) then '1' else '2' end, case when 1=isnumeric(left(code,1)) then '1' else '2' end, code select * from 表 order by isnull(code,'zzzzzzzz'),id与select * from 表 order by isnull(code,'zzzzzzzzzzz'),id区别 在哪里?是什么意思啊?不好意思,菜鸟一个!! 怕你数据中会出现多于'zzzzzzzz' 的数据,就不能保证'zzzzzzzz' 排在最后 ,所以后者取了你数据表中出现的最大自符数目,保证其总能排在最后。 写触发器语句发生的小错误。求解 如何更改sql server界面字体的大小 如何调整? 这样的update语句应该怎么写,求救!!!! 高分求解更改系统administrator名称后sql server数据库无法自动备份 关于数据库导出ID重复的问题 sqlserver在启动时出发什么事件 这种计算数目的SQL语句怎么写? 存储过程对树的处理 我的数据库从备份中恢复过来,但是我再创建和原来一样的用户时,总说已经存在了! 能否将123456789表示成1,234,567.89??? 请问组合条件查询如何写 如果解决images数据显示不出来的问题?
select * from table where code is not null order by code union
select * from table where code is null order by id
case when 1=isnumeric(left(code,1)) then '1' else '2' end,
code
与
select * from 表 order by isnull(code,'zzzzzzzzzzz'),id
区别 在哪里?
是什么意思啊?不好意思,菜鸟一个!!