摘要: 1 一丶解锁用户 2 --修改时间格式 3 alter session set nls_date_format = 'yyyy-MM-dd hh24:mi:ss'; 4 5 --查询锁住时间 6 select username,lock_date from dba_users where username like 'ODS'; 7 8 --查询用户状态 9 select... 阅读全文
posted @ 2017-05-26 09:23 GLing 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: --需要通过sqlplus / as sysdba 方式或登录sys/system管理用户更改 --1、命令登录方式 A--------------------------- SQL>sqlplus /nolog SQL>conn / as sysdba B--------------------------- SQL>sqlplus / as sysdba --查看用户密码默认管理方式 s... 阅读全文
posted @ 2017-05-24 09:17 GLing 阅读(4658) 评论(0) 推荐(0) 编辑
摘要: 1 --至少两个表有一定的关系条件 2 select * from tanme where 3 EXISTS (select * from tname2 where id=1 4 and tname2.con=tname.con); 5 --至少两个表有一定的关系条件 6 select * from tanme where 7 not EXISTS (select * from tname2 ... 阅读全文
posted @ 2017-05-24 09:12 GLing 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 --查询月的最后一天 2 select to_char(last_day(sysdate),'dd') LastDay from dual; 3 4 to_char(t.START_DATE,'fmyyyy-MM-dd') -2013-1-1 5 to_char(t.START_DATE,'yyyy-MM-dd') -2013-01-01 6 to_date('2013-1-1... 阅读全文
posted @ 2017-05-24 09:10 GLing 阅读(2607) 评论(0) 推荐(0) 编辑
摘要: D:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\confserver.xml 添加 maxPostSize="0" URIEncoding="UTF-8" 将改为: <Connector port="8080" protoco 阅读全文
posted @ 2017-05-24 09:08 GLing 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1 1. normal 普通索引 2 2. unique 唯一索引 组合一起唯一 3 4 drop index CONFIG_INFO_U1; 5 create unique index CONFIG_INFO_U1 on TIW_CONFIG_INFO (config_code, var_code); 阅读全文
posted @ 2017-05-24 09:04 GLing 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 一: 2 select *From dba_profileS s where s.profile='DEFAULT' AND RESOURCE_NAME='PASSWORD_LIFE_TIME'; -- 查看用户密码时间限制 3 ALTER profile default limit PASSWORD_LIFE_TIME UNLIMITED; --设置为无限制 4 5 二: 6 SELE... 阅读全文
posted @ 2017-05-23 09:38 GLing 阅读(6101) 评论(0) 推荐(0) 编辑
摘要: --1、插入已存在的表中 insert into table1 select * from v_views; --2、创建新表的方式,速度较快 create table table2 as (select * from v_views) --3、目标表不存在的方式 SELECT value1, value2 into Table2 from Table1 -目标表Table2不存在,因为在插入时... 阅读全文
posted @ 2017-05-22 11:28 GLing 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 用于where比较条件的有: 等于:=、<、<=、>、>=、<> 包含:in、not in exists、not exists 范围:between...and、not between....and 匹配测试:like、not like Null测试:is null、is not null 布尔链接 阅读全文
posted @ 2017-05-22 11:23 GLing 阅读(576) 评论(0) 推荐(0) 编辑
摘要: --1、lpad函数将左边的字符串填充一些特定的字符其语法格式如下: lpad(string,n,[pad_string]) -- string:可是字符或者参数 -- n:字符的长度,是返回的字符串的数量,如果这个数量比原字符串的长度要短,lpad函数将会把字符串截取成从左到右的n个字符; -- pad_string:是个可选参数,这个字符串是要粘贴到... 阅读全文
posted @ 2017-05-22 11:08 GLing 阅读(284) 评论(0) 推荐(0) 编辑