[英]Inserting a value into all rows in the column in php
You have to use an update query . 您必须使用更新查询 。
For your example: 例如:
UPDATE `TABLE_NAME` SET `Project1` = 0
要做:
UPDATE table_name SET Project1=0
Just omit where clause in Mysql, run this 只是省略Mysql中的where子句,运行它
update `mytable` set
`Project1` = 0
;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.