Home > Database > Mysql Tutorial > body text

update更新两个字段

WBOY
Release: 2016-06-07 15:56:18
Original
5089 people have browsed it

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}
Copy after login

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template