
数据库
文章平均质量分 58
Eric_YS
昂首仰望星空,低头脚踏实地
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
why 'not in' can not be followed with 'null'
记录一下: select * from dept_xxx a where a.deptno not in (select distinct b.deptno from emp_xxx b where b.deptno is not null ) not in(列表),列表如果存在null,那么将无返回结果。原创 2016-09-05 15:10:20 · 450 阅读 · 0 评论 -
oracle字符串截取函数substr
oracle 截取字符(substr),检索字符位置(instr) case when then else end语句使用 收藏 常用函数:substr和instr 1.SUBSTR(string,start_position,[length]) 求子字符串,返回字符串 解释:string 元字符串 start_position 开始位置(从1开始)转载 2017-06-05 17:37:31 · 1264 阅读 · 1 评论 -
oracle pl/sql脚本常用技巧
常用的技巧,再次记录保存 1、如何给类型为varchar2类型的id字段转换为number类型并增加值,不要说要用序列实现。 insert into test values((select to_char(max(to_number(id))+1) from test),'test','1','1','1') 2、查询某个字段有多少条不重复数据 如表testTble,字段studentId...原创 2017-07-03 11:09:02 · 1042 阅读 · 0 评论 -
Oracle 增加修改删除字段
Oracle 增加修改删除字段转载 2017-07-06 11:43:51 · 421 阅读 · 0 评论 -
java拼接字符,数据库字符和数字拼接的字符串作为字段,如ID,主键
java拼接字符,数据库字符和数字拼接的字符串作为字段,如ID,主键原创 2017-09-28 15:33:12 · 3754 阅读 · 1 评论