CREATE PROC sp_Select_Table
@TableName NVARCHAR(200)
AS
if charindex(' ', @TableName)<=0
begin
DECLARE @sql NVARCHAR(1000)
SET @sql='SELECT * FROM ' + @TableName
EXEC (@sql)
end GO
相关文章
- 01-14sp_getTable_data
2024-01-14 12:28:46
CREATE PROC sp_Select_Table
@TableName NVARCHAR(200)
AS
if charindex(' ', @TableName)<=0
begin
DECLARE @sql NVARCHAR(1000)
SET @sql='SELECT * FROM ' + @TableName
EXEC (@sql)
end GO