排列顺序
来源:互联网 发布:淘宝会员抓取软件骗局 编辑:程序博客网 时间:2024/04/25 02:27
declare @t1 table (id int,field nvarchar(5))
insert into @t1 select 3,N'记录1'
union all select 2,N'记录2'
union all select 1,N'记录2'
union all select 2,N'记录1'
union all select 3,N'记录2'
union all select 1,N'记录1'
select *
from @t1
where id in (1,2)
order by
case id
when 1 then 1
when 2 then 2
end
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
declare @t1 table (id varchar(5),field nvarchar(5))
insert into @t1 select 3,N'记录1'
union all select 2,N'记录2'
union all select 1,N'记录2'
union all select 2,N'记录1'
union all select 3,N'记录2'
union all select 1,N'记录1'
select *
from @t1
where id in (1,2)
order by charindex (','+id+',',',1,2,')
- 排列顺序
- 排列顺序
- 数组顺序的排列
- 顺序的逆序排列
- 修改字段排列顺序
- 1651: 排列顺序
- 手动排列文件夹顺序
- UOJ278 题目排列顺序
- 随机排列出场顺序
- 网线8根排列顺序
- Anagrams 打乱字母排列顺序
- 腾讯地图切片排列顺序
- 网线八根排列顺序
- 网络通讯中字节排列顺序转化
- 键盘字母排列顺序的由来
- 关于ORDER BY 指定排列顺序
- grub 引导的系统排列顺序设置
- CentOS的网卡顺序/网卡名称排列
- 使用SQL存储过程有什么好处
- 日系框架之Mayaa:HTML模板引擎
- 动态存储分配
- java小程序
- 给恋爱中的女孩的20条提醒
- 排列顺序
- MFC 教程【1_MFC概述 】
- !@#$%^&*
- MFC 教程【2_MFC和Win32 】
- MFC 教程【3_CObject类】
- 使用FreeMarker将数据模型中的值合并到模板文件中
- 把一个字节倒过来
- javascript代码
- 欧几里德算法