C# 连接Access数据库时出错;错误提示:标致表达式中数据类型不匹配
sqlcmd.ExecuteReader();执行时出错,错误提示:标致表达式中数据类型不匹配程序代码:stringstrConnection="Provider=Mic...
sqlcmd.ExecuteReader();执行时出错, 错误提示:标致表达式中数据类型不匹配 程序代码: string strConnection = "Provider=Microsoft.Jet.OleDb.4.0;"; strConnection += @"Data Source=C:\Users\xiaodong2\Desktop\PathAna\PathAna\32.mdb"; OleDbConnection objConnection = new OleDbConnection(strConnection); objConnection.Open(); string sql = "SELECT [Id] FROM [load] WHERE [begin] = @begin"; OleDbParameter oleParam = new OleDbParameter("begin", "A"); sqlcmd = new OleDbCommand(sql, objConnection); sqlcmd.Parameters.Add(oleParam); reader = sqlcmd.ExecuteReader();
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询