62,025
社区成员
发帖
与我相关
我的任务
分享
if( object_id('LZ的表') is not null )
drop table LZ的表
go
create table LZ的表
(
字段1 int ,
字段2 int
)
go
if( object_id('LZ的存储过程') is not null )
drop procedure LZ的存储过程
go
create procedure LZ的存储过程
@参数1 int ,
@参数2 int
as
begin tran
-- 过程而已
commit
go
/*使用数据库*/
use ComManageDB
go
/*判断该表是否已经存在*/
if exists ( select * from sys.objects where name ='UserInfo')
drop table UserInfo
go
/*创建UserInfo表*/
create table UserInfo
(
........