How would you massively assign a value to all rows of a column in a sample, in phpMyAdmin? The table has an empty column and rows with values 1 and 0. I would like to set all rows with value 1 to 0.
|
How would you massively assign a value to all rows of a column in a sample, in phpMyAdmin? The table has an empty column and rows with values 1 and 0. I would like to set all rows with value 1 to 0.
Source: https://ru.stackoverflow.com/questions/328198/
All Articles
string_columnvalue is one. The names of thetbltable and thetblstring fieldsstring_columnbe replaced with their own, of course. UPDATE tbl SET empty = 0 WHERE string_column = '1' - etki