语法:
update <table_name> set 字段1= "更新后的值",字段2= "更新后的值",字段3= "更新后的值";
也就是说,在set后面,通过逗号,将多个字段分隔开来即可。
update msg_s set msgtime=now(),msg_count=msg_count+1 where id=1;
语法:
update <table_name> set 字段1= "更新后的值",字段2= "更新后的值",字段3= "更新后的值";
也就是说,在set后面,通过逗号,将多个字段分隔开来即可。
update msg_s set msgtime=now(),msg_count=msg_count+1 where id=1;