存储过程 create or replace procedure TestPro(Descerr out varchar2 ) is begin select * from test; exception when others then Descerr :='接口表数据生成失败!'|| sqlerrm; end TestPro; job任务 ); begin--储存过程 TestPro(Descerr=>descerr); commit; end 视图 create or replace vi…
-- SQL SERVER 判断是否存在某个触发器.储存过程 -- 判断储存过程,如果存在则删除IF (EXISTS(SELECT * FROM sysobjects WHERE name='procedurename' AND type='P')) DROP PROCEDURE procedurename -- 判断触发器,如果存在则删除IF (EXISTS(SELECT * FROM sysobjects WHERE id=object_id(N'[dbo].[triggername]')…
储存过程 DELIMITER // CREATE PROCEDURE pro1() BEGIN SELECT book_id,book_name,category FROM bookinfo t1 JOIN bookcategory t2 ON t1.book_category_id = t2.category_id; END// DELIMITER ; DELIMITER // ),OUT num INT) BEGIN DELETE FROM reader_info WHERE card_id…