Check out example codes for "update all rows mysql". It will help you in understanding the concepts better.

Code Example 1

UPDATE tableName SET columnName = yourValue;
#to update multiple columns:
UPDATE tableName SET column1 = value1, column2 = value2; #and so on

Code Example 2

mysql> UPDATE tableName SET sometotal = sometotal+10 WHERE Id = 4;

Learn ReactJs, React Native from akashmittal.com