判断存储过程是否存在
发布网友
发布时间:2024-03-19 05:58
我来回答
共1个回答
热心网友
时间:2024-04-03 16:14
----sqlserver判断
if (exists (select * from sys.objects where name = '存储过程名称'))
drop proc proc_test
go
create.....
----oracle判断
select status from all_objects where object_type = 'PROCEDURE' and OWNER='用户名' and object_name='存储过程名';
or
select status from user_objects where object_type = 'PROCEDURE' and object_name='存储过程名';
有问题再追问。