表test1 字段SQLCom
的一条记录是 Select * from Remark where SystemID=@SystemID
CREATE PROCEDURE Getremak (@SystemIDd Int)
AS
declare @sql nvarchar(200)
select @sql=SQLCom from Test1
execute sp_executesql @sql ,N'@SystemID int ',@SystemID=@SystemIDd
GO