(一)使用输入参数 需求:在emp_copy中添加一条记录,empno为已有empno的最大值+1,ename不能为空且长度必须大于0,deptno为60. 创建存储过程: create or replace procedure insert_emp(emp_name in varchar2, dept_no in number) as begin declare max_empno number; begin if(emp_name is null or length(emp_name) =…
SQL),bookname ),publish )); Table created SQL> SQL> create or replace procedure sp_add_book(bookid in varchar2, bookname in varchar2,publish in varchar2) is begin insert into t_book values(bookid,bookname,publish); end; / Procedure created SQL> s…