首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

com.microsoft.sqlserver.jdbc.SQLServerException: 没为参数号 2 设置值

2012-11-16 
com.microsoft.sqlserver.jdbc.SQLServerException: 没有为参数号 2 设置值。2012-10-18 02:55:56 getOrder

com.microsoft.sqlserver.jdbc.SQLServerException: 没有为参数号 2 设置值。
2012-10-18 02:55:56 getOrderDetailsByID() sql1 ==@@= select no_x,bh,Gifts_name,Gifts_price,order_id,amonut,subtotal,offers from Gifts_Details where order_id=? 
2012-10-18 02:55:56 BaseDao findObj(paramSql,value) star 
com.microsoft.sqlserver.jdbc.SQLServerException: 没有为参数号 2 设置值。
2012-10-18 02:55:56 BaseDao findObj(paramSql,value) rs size @@@@== null


SQL中只有一个 ‘?’,为什么他提示我没有为参数号 2 设置值?求大侠指点。

[解决办法]
贴代码

热点排行