asp.net vb 报错 查询值的数目与目标字段中的数目不同,求解,字段数量是相同的,数据表中也只有两个字段 20
DimconnAsNewOleDbConnection("provider=microsoft.jet.oledb.4.0;datasource="&Server.Map...
Dim conn As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=" & Server.MapPath("test.mdb"))
Dim sql As String = "insert into info(学号,姓名) values('" + user_id.Value.ToString() + "','" + user_name.Value.ToString() + "')"
Dim cmd As New OleDbCommand(sql, conn)
conn.Open()
cmd.ExecuteNonQuery()
conn.Close() 展开
Dim sql As String = "insert into info(学号,姓名) values('" + user_id.Value.ToString() + "','" + user_name.Value.ToString() + "')"
Dim cmd As New OleDbCommand(sql, conn)
conn.Open()
cmd.ExecuteNonQuery()
conn.Close() 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询