[SQL ] MySQL 寫入上引號會出現錯誤
MySQL 5.0
用 asp.net 寫入上引號 ' 的時候會出現錯誤
但在 phpMyAdmin 中直接修改資料則可以加入上引號
請問該如何解決
thanks
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.114.41.17
※ TKelevens:轉錄至看板 Visual_Basic 03/14 12:44
→
03/14 12:48, , 1F
03/14 12:48, 1F
→
03/14 13:00, , 2F
03/14 13:00, 2F
→
03/14 14:14, , 3F
03/14 14:14, 3F
Dim strSql As String =
"update profile set name = '" & Me.textbox1.Text & "' where username = xx
※ 編輯: TKelevens 來自: 123.114.41.17 (03/14 14:38)
→
03/14 23:21, , 4F
03/14 23:21, 4F
→
03/14 23:27, , 5F
03/14 23:27, 5F
→
03/15 10:55, , 6F
03/15 10:55, 6F