MySQL基礎----動態SQL語句

動態sql語句基本語法  1 :普通SQL語句能夠用Exec執行  eg:   Select * from tableName           Exec('select * from tableName')           Exec sp_executesql N'select * from tableName'    -- 請注意字符串前必定要加N  2:字段名,表名,數據庫名之類做爲變
相關文章
相關標籤/搜索