摘要: alter table t_imp_test add constraint 约束名 unique(字段名); 唯一约束可以1个或多个空值,但非空值不能重复。 阅读全文
posted @ 2019-06-04 16:01 江清风 阅读(2852) 评论(0) 推荐(0) 编辑
摘要: abc@123的md5值是: a60ddd4393db83420dcf7e12c03a043ce2b4c2a1f389bc67e104e1fb 阅读全文
posted @ 2019-06-04 15:51 江清风 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 引用 :http://blog.csdn.net/cosio/article/details/3978747 , https://zhidao.baidu.com/question/628524115699308364.html block 块extent 区segment 段 --增加USERS表 阅读全文
posted @ 2019-05-31 18:06 江清风 阅读(3356) 评论(0) 推荐(0) 编辑
摘要: 查询主键是哪几列select table_name,column_name from user_cons_columns a,( select constraint_name from user_constraints where table_name='TR_COUNTRY_BASE_M' and 阅读全文
posted @ 2019-05-31 15:49 江清风 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 2019.7.17 15:44 add --字符内容含A或Cselect * from ( select 1 id, 'ABC' s1 from dual union all select 2 id,'AC' s1 from dual union all select 3 id,'BC' s1 fr 阅读全文
posted @ 2019-05-31 15:41 江清风 阅读(5589) 评论(0) 推荐(0) 编辑
摘要: 重命名列名: alter table cs_thz_1 rename column 旧列名 to 新列名 重命名表名 : rename 旧表名 to 新表名; 阅读全文
posted @ 2019-05-22 11:07 江清风 阅读(14616) 评论(0) 推荐(0) 编辑
摘要: 先替换非数字的为空,再截取 with tmp_a as ( select '2018-10-15 12:30:59' update_time from dual union all --结果是 20181015 select '2017/10/16 12:30:59' update_time fro 阅读全文
posted @ 2019-01-11 14:25 江清风 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 可参考: http://www.itxm.cn/post/11137.html2018.12.25 11:26,用declare调用一个包的过程一直在运行,但用下面的锁表语句没有查到对应表被锁.select sess.sid, sess.serial#, lo.oracle_username, lo 阅读全文
posted @ 2018-12-25 11:41 江清风 阅读(190) 评论(0) 推荐(0) 编辑
摘要: drop table cs_thz_1 ; create table cs_thz_1( nid number(10) ,sname varchar2(100) ,remark varchar2(200) ) ; truncate table cs_thz_1; insert into cs_thz 阅读全文
posted @ 2018-08-29 17:59 江清风 阅读(732) 评论(0) 推荐(0) 编辑
摘要: --父子查询 --prior 代表 上一条记录 drop table cs_thz_1; create table cs_thz_1( id number(10) ,sname varchar2(100) ,sremark varchar2(1000) ,parentid number(10) ) 阅读全文
posted @ 2018-08-29 17:56 江清风 阅读(474) 评论(0) 推荐(0) 编辑