字符串拆分--For Oracle
来源:互联网 发布:vb学生信息管理系统 编辑:程序博客网 时间:2024/05/29 14:29
/* Formatted on 2011/07/12 16:54 (Formatter Plus v4.8.8) */SELECT DISTINCT t.serial_number, t.defect_code,rn,SUBSTR (t.defect_code,INSTR (',' || t.defect_code || ',', ',', 1, rn),INSTR (',' || t.defect_code || ',', ',', 1, rn + 1)- INSTR (',' || t.defect_code || ',', ',', 1, rn)- 1) AS str_newFROM g_test_dup_rate t,(SELECT ROWNUM rnFROM all_objectsWHERE ROWNUM <= 20)WHERE INSTR (',' || t.defect_code || ',', ',', 1, rn + 1) > 0AND t.defect_code IS NOT NULLORDER BY t.serial_number,rn;
上面工作中一个简单的oracle数据库下拆分字符串方法!
阅读全文
0 0
- 字符串拆分--For Oracle
- oracle 拆分字符串函数
- oracle 拆分字符串
- Oracle 拆分字符串
- Oracle拆分字符串函数
- Oracle拆分字符串函数
- Oracle 字符串拆分
- ORACLE拆分字符串函数
- Oracle拆分字符串函数
- Oracle拆分字符串函数
- Oracle 拆分字符串
- Oracle拆分字符串函数
- Oracle拆分字符串函数
- oracle拆分字符串
- ORACLE字符串拆分
- Oracle拆分字符串函数
- Oracle拆分字符串函数
- oracle拆分字符串
- javascript中call()、apply()、bind()方法的区别
- python 超全sklearn教程,数据挖掘从入门到入坑
- 51Nod-1137 矩阵乘法
- ETL嵌入自编写java获取Cookie
- fdasf
- 字符串拆分--For Oracle
- Maven name与artifactId 区别
- Top K Frequent Elements
- 代码设置浏览器不保存缓存
- React Native 第十一天
- lua源码阅读(3)----字符串
- INNER JOIN连接两个表、三个表、五个表的SQL语句
- 使用三种不同核函数配置的支持向量机(回归)模型对美国波士顿地区房价进行预测
- MyISAM和InnoDB的索引实现