Home  >  Article  >  Database  >  update更新两个字段

update更新两个字段

WBOY
WBOYOriginal
2016-06-07 15:56:185048browse

update更新两个字段时的sql语句: update tj_record set is_recycle_reprint_guide='1' , recycle__guide_date=now() where id = #{record_id} 科室如果我将字段的“,”写成了and也不报错。但是更新不了。如图: 切记,更新多个字段时是以逗号分隔。

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

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

科室如果我将字段的“,”写成了and也不报错。但是更新不了。如图:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn