当前位置:操作系统 > Unix/Linux >>

错误:至少一个参数没有被指定值解决

错误:至少一个参数没有被指定值解决
 
至少一个参数没有被指定值。  www.zzzyk.com  
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.Data.OleDb.OleDbException: 至少一个参数没有被指定值。
 
总结:  www.zzzyk.com  
这种情况的出现主要是我们写的SQL语句与数据库字段对应不起来或表中没有该字段引起:
 
select * from mytable where a='1' and b='1'
但你的mytable没有a字段
 
解决此问题的方法就是认真的对照SQL语句和数据库表是否对应……
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,