Oracle 分区表和加锁

第三章  分区表和加锁
锁定用户、
alter user scott account lock;
解锁用户、
alter user scott account unlock;
SQL>中的符号
select * from scott.emp where sal<=any(select sal from scott.emp where deptno=30);
将一个值和一组值进行比较、返回满足条件的数据
savepoint p1;
将当前的数据建立一个保存点、便于事物的回滚、
rollback to p1;
回滚到保存点
-----------------------------------------------------------
伪表及伪列

select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;
查看系统时间
union(并集)
intersect(交集)
------------------------------------------------------------
函数_单行函数
select * lower ('aHndLJO') from dual;
输出括号中字母、并且以小写输出
select * upper('dadJlllA') from dual;
输出括号的中的字母、并且以大些输出
------------------------------------------------------------
分区和表解锁

lock table scott.emp in exclusive mode
给表加锁

猜你喜欢

转载自x1ong.iteye.com/blog/1825016