Q
QqMe
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE Procedure selectTableValue
(@sTableName varchar(100),@sFieldName varchar(100))
as
declare @sValue varchar(30)
set @sValue=exec('select top 1 '+@sFieldName+' from '+@sTableName)
print @sValue
这个存储过程应怎样建
(@sTableName varchar(100),@sFieldName varchar(100))
as
declare @sValue varchar(30)
set @sValue=exec('select top 1 '+@sFieldName+' from '+@sTableName)
print @sValue
这个存储过程应怎样建