![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Oracle
AllenCRQ
这个作者很懒,什么都没留下…
展开
-
Oracle 游标的使用 及函数
1:在SCOTT模式下显示工资排名前5的员工的编号、姓名和工资,并将所有执行正确的PL/SQL语句记录下来。原创 2022-05-27 09:03:28 · 665 阅读 · 0 评论 -
PL/SQL编程基础
SQL> declare 2 d date:=sysdate; 3 a varchar2(10):='crq'; 4 begin 5 dbms_output.put_line('hello'||' '|| a ||' '|| d); 6 end; 7 /2:使用%type变量:SQL> declare 2 name emp.ename%type; 3 salary emp.s原创 2022-05-21 13:35:51 · 171 阅读 · 0 评论 -
Oracle复习一 相关查询
1:查询 当前用户所有表名称select table_name from user_tables;2:查询 当前用户下表的数量select count(*) from user_tables;3:解锁用户alter user scott account unlock;4:解锁用户后设置密码alter user scott identified by Admin888;5:设置每行的显示字符数set linesize 200;6:设置每页显示的行数set pages原创 2022-05-21 08:34:33 · 86 阅读 · 0 评论