[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