引用
最初由 长门有希 发布
strSql ="SELECT * from WeaponList where WeaponID=......
……
要取消吗?
(坐回窗边,继续看书)
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery(strSql);
int firelevel=0;
int firelevel_next=0;
int Weaponid=0;
while(rs.next())
{
firelevel_next=rs.getInt("WeaponFireLevel");
if(firelevel_next>firelevel)
{
Weaponid=rs.getInt("WeaponID");
firelevel=firelevel_next;
}
}
Fire(Weaponid);