![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle随笔
Charles_C#
这个作者很懒,什么都没留下…
展开
-
oracle 多表连接查询join
select a.x,b.y from a,b where a.id= b.id返回所有满足where 条件的行select a.x from a inner join b on a.id = b.idinner 可以省略 结果同上left join查询结果出了返回包含连接天剑的行,还包含左表 a 中不满足连接条件的行其中不满足连接条件的行中b表的字段值将被置位空。...原创 2019-10-16 14:48:28 · 183 阅读 · 0 评论 -
oracle 查询关键字的先后顺序
selectfromwhere group by havingorder bylimit原创 2019-10-16 14:30:07 · 300 阅读 · 0 评论 -
oracle 实现limit功能
查询10行select * from A where rownum <=10;查询中间的10-100行select * from A rownum <101 minus select * from A rownum>9原创 2019-10-16 14:29:12 · 1722 阅读 · 0 评论 -
oracle常用函数整合
1、ASCII返回指定的字符对应的十进制数;2、CHR给出整数,返回对应的字符。3、CONCAT连接两个字符串4、INITCAP返回字符串并将字符串的第一个字母变为大写5、INSTR(被搜索的字符串,希望被搜索的字符串,搜索的开始位置默认1,出现的位置默认1)6、Length 返回字符串的长度7、lower 字符串小写8、upper 字符串大写9、r...原创 2019-10-16 14:22:18 · 105 阅读 · 0 评论 -
oracle 替换常规操作
NVL(EXP1,EXP2)如果exp1计算结果为null,则返回exp2.如果exp1计算结果不是null,则返回exp1。replace用法replace(字段名,“原字段旧内容”,“原字段新内容”)...原创 2019-10-16 13:42:43 · 417 阅读 · 0 评论