一样,sql用update或者insert啊
Dim conn As MySql.Data.MySqlClient.MySqlConnection
Dim cmd As MySql.Data.MySqlClient.MySqlCommand
Dim sdr As MySql.Data.MySqlClient.MySqlDataReader
Dim connStr As String = "server=localhost; port=3306; user id=root; password=root; database=dbexhibitionprinter"
conn = New MySql.Data.MySqlClient.MySqlConnection(connStr)
conn.Open
cmd = new MySql.Data.MySqlClient.MySqlCommand("INSERT INTO tbl_name (col1,col2) VALUES(15,16);", conn)
cmd.ExecuteNonQuery()
conn.close