請幫忙,什麼毛病我vb.net代碼在一個MySQL數據庫插入數據到MySQL與VB .NET
Dim conn As New MySqlConnection(ConfigurationManager.ConnectionStrings("ibdm").ConnectionString)
Dim cmd1 As New MySqlCommand("INSERT INTO configs(configType, portsStatus, bandwidthLimit, ports, user) values(@config, @manage, @limit, @ports, @user)", conn)
Try
conn.Open()
cmd1.ExecuteNonQuery()
iReturn = True
Catch ex As MySqlException
MsgBox(ex.Message.ToString)
iReturn = False
Finally
conn.Close()
End Try
您能否提供一些指示說明您正在解決的問題? – Pezzzz 2013-04-11 10:05:13