您的位置:首页 > 博客中心 > 数据库 >

[SQL]存储过程建表

时间:2022-03-13 22:49

create PROC [dbo].CreateUserTable
( @name NVARCHAR(60) )
AS
DECLARE @a NVARCHAR(max)
SET
@a=‘create table ‘+@name +‘ ([id] [int] IDENTITY(1,1) NOT NULL‘
EXEC (@a)

exec CreateUserTable ‘zhou‘

[SQL]存储过程建表,布布扣,bubuko.com

热门排行

今日推荐

热门手游