日期:2014-05-17 浏览次数:20506 次
CREATE Procedure [dbo].[P_Report_System]
(
@where nvarchar(500)
)
select
。。。。。。。
from 表
where 1=1 exec(@where)
EXEC P_Report_System ' and ecoa.codename = ''C'' '
CREATE Procedure [dbo].[P_Report_System]
(
@where nvarchar(500)
)
declare @sql nvarchar(4000)
set @sql = 'select * from 表 where 1=1 '+@where
exec(@sql)
go
EXEC P_Report_System ' and ecoa.codename = ''C'' '
create Procedure [dbo].[P_Report_System]
(
@where nvarchar(500)
)
as
DECLARE @sql nvarchar(max)
SET @sql='select *
from sys.sysprocesses
where 1=1 '+@where
EXEC(@sql)
EXEC P_Report_System ' and ecoa.codename = ''C'' '