第三章 分区表和加锁
锁定用户、
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
给表加锁
锁定用户、
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
给表加锁
本文介绍了SQL操作的基础知识,包括如何锁定和解锁用户、使用保存点进行事务回滚、查询伪表和伪列,以及如何利用单行函数转换字符串大小写。此外,还讲解了如何对表进行加锁,并简要提到了分区的概念。
4776

被折叠的 条评论
为什么被折叠?



