求 数据库的update语句有关问题

WBOY
Release: 2016-06-13 12:36:34
Original
806 people have browsed it

求 数据库的update语句问题
poster的值为2 要怎么批量把poster的值为1
我的数据库语句如下

<br />
update user set poster = 1  WHERE poster = 2<br />
Copy after login

但是却报错
Unknown column 'poster' in 'where clause'

要怎么批量把poster的值批量修改为2(原本值为1)

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!