本文介绍了VB.Net MySQL编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码有问题.
Hi,
i have some problems with my code.
Dim sql As String
Dim MySQLConnection As MySqlConnection
MySQLConnection = New MySqlConnection
MySQLConnection.ConnectionString = "server=127.0.0.1;Port=3307; User ID=root; password=qweqwe; database=test"
MySQLConnection.Open()
sql = "DELETE FROM online"
Dim da As New MySqlDataAdapter(sql, MySQLConnection)
Dim cb As New MySqlCommandBuilder(da)
MySQLConnection.Close()
我可以连接到mysql做选择查询等等,但是我不能插入或删除行,这是什么问题,谢谢您.
I can connect to mysql do selections query and so on but i can''t insert or delete row what is the problem thank you.
推荐答案
这篇关于VB.Net MySQL编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!