随笔分类 -  Oracle

该文被密码保护。
posted @ 2020-05-09 23:58 chenzechao 阅读(0) 评论(0) 推荐(0) 编辑
摘要:-- oracle select substr(md5(key_id),1,1) as flag ,count(1) as cnt from ( select 1 as key_id union all select 2 as key_id union all select 3 as key_id 阅读全文
posted @ 2020-03-31 22:33 chenzechao 阅读(403) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/kawashibara/p/8961646.html 阅读全文
posted @ 2020-03-21 22:41 chenzechao 阅读(374) 评论(0) 推荐(0) 编辑
摘要:select name ,greatest(num1,num2,num3,num4) as max_num -- 最大值 ,least(num1,num2,num3,num4) as min_num -- 最小值 from ( select 'a' as name,1 as num1, 3 as num2, 2 as num3,4 as num4 ) t1 ; 阅读全文
posted @ 2019-12-19 16:39 chenzechao 阅读(783) 评论(0) 推荐(0) 编辑
摘要:https://hub.docker.com/r/9fevrier/oracle-11g Informations Oracle directory : /opt/oracle Data directory : /app/oracle/data SID : orcl Login/password : 阅读全文
posted @ 2019-09-27 18:15 chenzechao 阅读(438) 评论(0) 推荐(0) 编辑
摘要:oracle service name connect dest_ip=100.100.100.100 dest_port=1634 dest_dbname=server_name connect="jdbc:oracle:thin:@//${dest_ip}:${dest_port}/${dest_dbname}" 阅读全文
posted @ 2018-11-27 14:02 chenzechao 阅读(120) 评论(0) 推荐(0) 编辑
摘要:ref:https://blog.csdn.net/trigl/article/details/68944434 阅读全文
posted @ 2018-09-12 10:22 chenzechao 阅读(241) 评论(0) 推荐(0) 编辑
摘要:select t1.owner ,t1.table_name ,t1.column_id ,t1.column_name ,t1.data_type ,t2.comments from all_tab_columns t1 join all_col_comments t2 on t1.owner = t2.owner ... 阅读全文
posted @ 2018-08-31 14:33 chenzechao 阅读(224) 评论(0) 推荐(0) 编辑
摘要:-- 指定时间所在的季度的第一天 SQL实现: 2. 创建相应的日期维表可以实现 3. 通过shell可以实现 阅读全文
posted @ 2018-08-09 16:42 chenzechao 阅读(1391) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-07-30 16:04 chenzechao 阅读(1) 评论(0) 推荐(0) 编辑
摘要:export NLS_LANG=AMERICAN_AMERICA.UTF8 阅读全文
posted @ 2017-03-25 21:16 chenzechao 阅读(1771) 评论(0) 推荐(0) 编辑
摘要:有两种含义的表大小。一种是分配给一个表的物理空间数量,而不管空间是否被使用。可以这样查询获得字节数:select segment_name, bytes from user_segments where segment_type = 'TABLE'; 或者 Select Segment_Name,S 阅读全文
posted @ 2016-12-05 15:53 chenzechao 阅读(11041) 评论(0) 推荐(0) 编辑
摘要:-- 1.判断表是否存在,如果存在则drop表 -- 2.创建表 -- 3.插入1W条数据 -- 4.每1K条commit一次 declare v_table varchar2(222):='STUDENT'; --表名 v_table_exists number:=0; --如果大于0,则表存在 v_sql_create varchar2(222... 阅读全文
posted @ 2016-12-02 00:00 chenzechao 阅读(489) 评论(0) 推荐(0) 编辑
摘要:1 --创建表 (sqlplus执行) 2 drop table cjw; 3 create table cjw (name varchar(222),phone number,province varchar(222),city varchar(222),born varchar(222),adressJob varchar(2222),mail varchar(222)); 4 ... 阅读全文
posted @ 2016-11-20 19:31 chenzechao 阅读(16381) 评论(0) 推荐(0) 编辑

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