排序问题 表1 (id int)id123如何显示312 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id from 表1 order by charindex('312') declare @t table(a int)insert into @t select 1insert into @t select 2insert into @t select 3select * from @t order by case a when 3 then 1 when 1 then 2 when 2 then 3 else a endselect * from @t order by charindex(rtrim(a),'312') select * from tb order by id % 3 Excel 批量导入 SQL Server 2005 请教各位,在sql server2000中如何查出一个变量的字段类型 新手!!!数据库查询问题! 【求救】多列重复过滤并排序的问题 求高手解决。。。 在线等!高手帮忙啊,数据库怎么也恢复不了啊!!!!分不够再加 这样的联接该如何来写? 一个前端由PB开发的问题 求一个sql 求一SQL语句,按照频次排序 索引碎片整理以及数据库收缩 求一条简单的SQL语句 如何查找第二大数据
order by charindex('312')
insert into @t select 1
insert into @t select 2
insert into @t select 3select * from @t order by case a when 3 then 1 when 1 then 2 when 2 then 3 else a endselect * from @t order by charindex(rtrim(a),'312')