stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
sql="select sum(Qty) as a from tbl_order where order_no='960526AT'";
rs = stmt.executeQuery(sql);
if (rs==null)
{
out.print("is null no idea!!!");
}
居然记录集为空,请高手给各答案
sql="select sum(Qty) as a from tbl_order where order_no='960526AT'";
rs = stmt.executeQuery(sql);
if (rs==null)
{
out.print("is null no idea!!!");
}
居然记录集为空,请高手给各答案
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();