摘要: 1 :普通SQL语句可以用Exec执行例: Select * from tableName Exec('select * from tableName') Exec sp_executesql N'select * from tableName' -- 请注意字符串前一定要加N 2:字段名,表名,数据库名之类作为变量时,必须用动态SQL 错误:declare @fname varchar(20... 阅读全文
posted @ 2008-04-26 11:56 iLove.Net 阅读(5332) 评论(18) 推荐(0) 编辑