摘要: create procedure myprocdure @sqlstr nvarchar(1000) as exec (@sqlstr) go 使用: EXEC MYPROCDURE N'SELECT * FROM TABLENAME'==============================附:动态SQL基本语法1: 普通SQL语句可以用Exec执行 eg: Select * from tableName Exec('select * from tableName') sp_executesql N'select * from tableName&# 阅读全文
posted @ 2010-11-18 07:12 JumpByte 阅读(330) 评论(0) 推荐(0)