instr用在oracle排序中
来源:互联网 发布:mysql case when else 编辑:程序博客网 时间:2024/06/02 21:26
create table TEST
(
A INTEGER,
B CHAR(1)
(
A INTEGER,
B CHAR(1)
);
insert into test (A, B)
values (3, 'b');
insert into test (A, B)
values (5, 'b');
insert into test (A, B)
values (4, 'c');
insert into test (A, B)
values (1, 'a');
insert into test (A, B)
values (2, 'a');
insert into test (A, B)
values (6, 'a');
commit;
现在要按 字段B排序, 规则是 先 b , 后c, 最后是a
原始数据:
A B
1 a
2 a
3 b
4 c
5 b
6 a
要求排序后的结果:
A B
3 b
5 b
4 c
1 a
2 a
6 a
语句为:
select * from test order by instr('b,c,a',b), a;
- instr用在oracle排序中
- 在oracle中instr() 方法
- oracle中instr函数
- oracle中instr函数
- Oracle中Instr用法
- Oracle中Instr用法
- Oracle中Instr用法
- Oracle中Instr用法
- Oracle中instr函数
- Oracle中 instr 函数
- Oracle中 instr 函数
- oracle中instr函数
- Oracle中INSTR,SUBSTR方法
- Oracle中Instr函数使用
- oracle中like和instr
- Oracle中instr函数用法
- Oracle中INSTR的用法
- Oracle中instr函数使用方法
- 在windows机器上如何使用uglify.js
- Visual Studio免费插件
- Oracle中分析表的作用
- c++0x:Lambda表达式(匿名函数)
- Android图形---OpenGL(五)
- instr用在oracle排序中
- winform窗体间传值
- java 内存机制(堆和栈)
- 属性、配置属性、常规,然后右边有个“项目默认值:“
- 分享45个android实例源码,很好很强大.收藏吧!!!
- iOS TA Solution (一) 背景及功能介绍篇
- Struts2 Struts.properties文件
- js实现省市级联
- Google Android开发精华教程