存在则删除
--判断指定的数据库是否存在,存在则删除
if exists (select name from master..sysdatabases where name in (''db_name''))
drop database db_name
go
--判断指定的存储过程是否存在,存在则删除
if exists (select * from sysobjects where objectproperty(object_id(''proc_name''), ''IsProcedure'')=1)
drop procedure proc_name
go
--判断指定的表是否存在,存在则删除
if exists (select * from sysobjects where objectproperty(object_id(''table_name''),''istable'')=1)
drop table table_name
点卡API支付接口支持各大游戏类一卡通接口。优势:1、同行业点卡回收支付业务更全;2、同行业点卡回收处理速度更快;3、同行业点卡回收技术更强,支持多卡同时提交;更新内容:1、增加点卡卡密规则文档,发便开发人员根据卡密位数提交前判断;2、增加点卡api接口密钥申请教程,减少在申请过程担误的时间;3、POST传值加密措施更严谨,同行业内存在多年的不足已修复完善;
0
go
--判断指定的自定义函数是否存在,存在则删除
if exists (select * from sysobjects where objectproperty(object_id(''dbo.func_name''), ''isansinullson'')=1)
drop function dbo.func_name
go
--判断指定的临时表是否存在,存在则删除
if exists (select * from tempdb..sysobjects where name like ''#table_name%'')
drop table #table_name
go
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号