随笔分类 - Oracle
摘要:-- 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
阅读全文
摘要:https://www.cnblogs.com/kawashibara/p/8961646.html
阅读全文
摘要: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 ;
阅读全文
摘要:https://hub.docker.com/r/9fevrier/oracle-11g Informations Oracle directory : /opt/oracle Data directory : /app/oracle/data SID : orcl Login/password :
阅读全文
摘要: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}"
阅读全文
摘要:ref:https://blog.csdn.net/trigl/article/details/68944434
阅读全文
摘要: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 ...
阅读全文
摘要:-- 指定时间所在的季度的第一天 SQL实现: 2. 创建相应的日期维表可以实现 3. 通过shell可以实现
阅读全文
摘要:export NLS_LANG=AMERICAN_AMERICA.UTF8
阅读全文
摘要:有两种含义的表大小。一种是分配给一个表的物理空间数量,而不管空间是否被使用。可以这样查询获得字节数:select segment_name, bytes from user_segments where segment_type = 'TABLE'; 或者 Select Segment_Name,S
阅读全文
摘要:-- 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...
阅读全文
摘要: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 ...
阅读全文