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);
}
举报
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号