TA贡献1873条经验 获得超9个赞
while(true)
{
sqlcommand cmd;
cmd.CommandText = "update t set states =2 where states = 1";
cmd.Timeout = 10 * 1000;
try{cmd.execute;} catch(timeoutexception e){}}
TA贡献1863条经验 获得超2个赞
try
catch(timeoutexception ee)
thread.sleep(10*1000);
}
举报