YAMAHA's Blog
2013年9月18日 星期三
ASP.NET中使用MySQL宣告變數的問題 Parameter ‘@id’ must be defined
有遇到MySql.Data.MySqlClient.MySqlException: Parameter ‘@id’ must be defined這樣的問題的話
到設定
Connection String Setting
的地方加上
Allow User Variables=True
就可以了
ex.Database=testdb;Data Source=localhost;User Id=root;Password=hello;Allow User Variables=True
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言