ALTER PROCEDURE [dbo].[sp_CommSelect]
@ParamName VARCHAR(2000),/*查询字段字符串*/
@TableName VARCHAR(2000),/*表名*/
@ParamWhere NVARCHAR(2000)/*条件字符串*/
AS
BEGIN
DECLARE @Sql VARCHAR(5000)
set @Sql=‘select ‘[email protected]+‘ from ‘[email protected]+‘ where 1=1 and ‘[email protected]
exec(@Sql)
END
时间: 2024-10-21 07:19:31