至少一个参数没有被指定值 每次都是报这个位置至少一个参数没有被指定值OleDbDataReader read= command.ExecuteReader();string sql = "select * from message where qq/msn='" + qq.Text+"'";操作语句是这句,请问问题出在哪? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string sql = "select * from message where [qq/msn]='" + qq.Text+"'"; 这样试试 执行字符串用参数了?看看拼出来的sql语句什么样。 access中 执行sql是否有oledbparamter参数 oledbparamter 肯定是你的参数对不上号 string sql = "select * from message where (qq/msn)='" + qq.Text+"'";connection = new OleDbConnection(connectionString); connection.Open(); command = new OleDbCommand(sql,connection); //command.Connection = connection; OleDbDataReader read= command.ExecuteReader(); 你贴的代码里只有一个参数,是不是connectionString 出错啊 你看一下qq/msn 数据库中定义的是char,varchar这类的吗? 问题解决了把qq/msn改成qq就行了- - 大于0小于1之间的数字,用正则表达式怎么写? 动态添加的Button如何添加它的Click事件 请一条sql语句?解决立即送分! 谁有“百姓房产中介系统 v2.0 ”的完整源代码,网上的不全。 请大侠们帮帮忙,ASP.NET一个页面的数据传到别一个页面。 救命呀。救命呀!!!!!!救命呀。救命呀!!!!!!请问什么问题呢? 简单问题 为什么报如下错 .net中的水晶报表怎么注册?? 求救关于ASP.NET发布的问题 急需一基于WebService的数据库管理系统或类似的也行!!!(高分) CMS新闻类别的无限级分类以及该分类下的文章调用和统计 关于session的问题!
是否有oledbparamter参数
connection = new OleDbConnection(connectionString);
connection.Open();
command = new OleDbCommand(sql,connection);
//command.Connection = connection;
OleDbDataReader read= command.ExecuteReader();