随笔分类 -  oracle相关学习

摘要:-- not in 的替代写法select col from table1 where col not in(select col from table2); select col,table2.col temp_colfrom table1 left join table2on table1.co 阅读全文
posted @ 2019-12-06 14:04 ConfidentLiu 阅读(4235) 评论(0) 推荐(0) 编辑
摘要:转载:https://blog.csdn.net/weixiaohuai/article/details/83513957 https://blog.csdn.net/chihen/article/details/22579473 阅读全文
posted @ 2019-03-19 11:12 ConfidentLiu 阅读(942) 评论(0) 推荐(0) 编辑
摘要:1. Oracle是大型数据库而Mysql是中小型数据库,Oracle市场占有率达40%,Mysql只有20%左右,同时Mysql是开源的而Oracle价格非常高。 2. Oracle支持大并发,大访问量,是OLTP最好的工具。 3. 安装所用的空间差别也是很大的,Mysql安装完后才152M而Or 阅读全文
posted @ 2019-03-19 11:06 ConfidentLiu 阅读(287) 评论(0) 推荐(0) 编辑
摘要:本文实例讲述了Oracle触发器用法。分享给大家供大家参考,具体如下: 一、触发器简介 触发器的定义就是说某个条件成立的时候,触发器里面所定义的语句就会被自动的执行。 因此触发器不需要人为的去调用,也不能调用。 然后,触发器的触发条件其实在你定义的时候就已经设定好了。 这里面需要说明一下,触发器可以 阅读全文
posted @ 2019-03-12 20:53 ConfidentLiu 阅读(198) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/itmyhome/p/4131339.html Clob类型转换成String类型 oracle中表结构如下: [sql] view plaincopyprint? create table GRID_RESOURCE ( ID VARCHAR2 阅读全文
posted @ 2019-01-17 16:24 ConfidentLiu 阅读(3661) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/Grand-Jon/p/7389427.html 一、Oracle中的varchar2类型 我们在Oracle数据库存储的字符数据一般是用VARCHAR2。VARCHAR2既分PL/SQL Data Types中的变量类型,也分Oracle Da 阅读全文
posted @ 2019-01-17 14:45 ConfidentLiu 阅读(389) 评论(0) 推荐(0) 编辑
摘要:(1)select mark, wm_concat(status) from DISSENT_INFO t GROUP BY mark; 查出来的数据 mark status 222 1007,1006333 1008,1008444 1008 (2) 阅读全文
posted @ 2019-01-16 20:17 ConfidentLiu 阅读(771) 评论(0) 推荐(0) 编辑
摘要:Num_digits 的默认值为 0。 正数向后截取,负数向前截取 TRUNC()函数截取时不进行四舍五入 */ select trunc(123.458) from dual; --123 select trunc(123.458, 0) from dual; --123 select trunc 阅读全文
posted @ 2019-01-16 19:52 ConfidentLiu 阅读(2784) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/qmfsun/p/4493918.html 使用Oracle中Instr()和substr()函数: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2018-12-29 12:54 ConfidentLiu 阅读(4773) 评论(0) 推荐(0) 编辑
摘要:CAST()函数可以进行数据类型的转换。 CAST()函数的参数有两部分,源值和目标数据类型,中间用AS关键字分隔。 以下例子均通过本人测试。 一、转换列或值 语法:cast( 列名/值 as 数据类型 ) 用例: 1)、转换列 --将empno的类型(number)转换为varchar2类型。 s 阅读全文
posted @ 2017-10-30 09:53 ConfidentLiu 阅读(1081) 评论(1) 推荐(0) 编辑
摘要:http://blog.itpub.net/10159839/viewspace-254449/ 、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、 OVER(PARTITION BY)函数介绍 开窗函数 Oracle从8.1.6开始提供分析函数,分析函数用于计算基于组的某种聚合值,它 阅读全文
posted @ 2017-09-28 11:43 ConfidentLiu 阅读(1183) 评论(0) 推荐(0) 编辑
摘要:--分页查询一select * from (select a1.*,rownum rn from (select * from student) a1 where rownum <=5) where rn>=2; --分页查询二select a1.* from (select student.*,r 阅读全文
posted @ 2017-07-03 11:21 ConfidentLiu 阅读(245) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示