update更新两个字段

    update更新两个字段时的sql语句:

   update tj_record set is_recycle_reprint_guide='1' , recycle__guide_date=now() where id = #{record_id}

科室假设我将字段的“。”写成了and也不报错。可是更新不了。

如图:

切记,更新多个字段时是以逗号分隔。


原文地址:https://www.cnblogs.com/mengfanrong/p/5337299.html