日期:2014-05-20  浏览次数:21059 次

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 设置值?求大侠指点。

------解决方案--------------------
贴代码