我想在VB.net中使用DataGridView在数据库(MS Access)中更新/编辑数据 我用过这段代码: Dim sadapter As OleDb.OleDbDataAdapter Dim sds As DataSet sadapter.Update(sds, "marks") 然后显示此消息: Dynamic SQL generati
我用过这段代码:
Dim sadapter As OleDb.OleDbDataAdapter Dim sds As DataSet sadapter.Update(sds, "marks")
然后显示此消息:
如果表没有主键,则需要设置一个.Dynamic SQL generation for the UpdateCommand is not supported against
a SelectCommand that does not return any key column information.