我正在为数据库中的复选框项目存储开发程序。但它以字符方式存储,只需要一件物品
我的复选框值以字符方式存储在数据库中。如何解决这个问题
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each item As Object In CheckedListBox1.SelectedItem
qur = "insert into list(list) values('" & item.ToString & "')"
cmd = New SqlCommand(qur, con)
con.Open()
cmd.ExecuteNonQuery()
MsgBox("insert sucessfully")
cmd.Dispose()
con.Close()
Next
End Sub