摘要: (1)无参数存储过程创建和调用-统计emp表中职工人数 create or replace procedure emp_count as v_total number(10); begin select count(*) into v_total from emp; dbms_output.put_ 阅读全文
posted @ 2019-06-27 08:33 你难忘的 阅读(266) 评论(0) 推荐(0) 编辑
摘要: (1) 查询emp表的雇员名称和工资 select ename,sal from emp; (2) 查询雇员工资上浮20%的结果 select sal*1.2 from emp; (3) 查询emp表中不同的部门编号 select distinct deptno from emp; (4) 查询雇员 阅读全文
posted @ 2019-06-27 08:33 你难忘的 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1使用PL/SQL块查询表的信息 (1)查询编号为7369的员工名称和职务信息。 set serveroutput on desc emp declare v_ename varchar2(10); v_job varchar2(9); begin select ename,job into v_e 阅读全文
posted @ 2019-06-27 08:33 你难忘的 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: (1)创建记录表记录对表的操作 create table operation_log( id number(10) primary key, username varchar2(15), time date, operate varchar2(10), tablename varchar2(10), 阅读全文
posted @ 2019-06-27 08:32 你难忘的 阅读(1671) 评论(0) 推荐(0) 编辑