update aa set b='bb' where a=1 or a=2 or a=3 update aa set b='bb' where a in (1,2,3) update aa set b='bb' where 0<a and a<4如果你是在前台应用可以如是在query中可以: query1.add('update aa set b="bb" where a=1;update aa set b="bb" where a=2;update aa set b="bb" where a=3') query1.execute();
b="bb"这个bb的值是根据a字段而不同的
update aa set b='bb' where a in (1,2,3)
update aa set b='bb' where 0<a and a<4如果你是在前台应用可以如是在query中可以:
query1.add('update aa set b="bb" where a=1;update aa set b="bb" where a=2;update aa set b="bb" where a=3')
query1.execute();