📅  最后修改于: 2022-03-11 14:55:38.502000             🧑  作者: Mango
Dim insertSQL As String = "INSERT INTO member(Name, Pass) VALUES (?,?)"
Dim cmd As New OdbcCommand(insertSQL, myconn)
'cmd.Parameters.Add("Name", OdbcType.VarChar).Value = objMember.Name '
cmd.Parameters.AddWithValue("Name", objMember.Name)
cmd.Parameters.AddWithValue("Pass", objMember.Pass)
'Note that with ODBC Command, the ORDER you add to the parameters collection
'matters most. The names of your params don't matter.