1UPDATE table_name
2SET variable = 'changed field', variable = 'another changed field'
3WHERE firstline_name = 1;
1UPDATE [LOW_PRIORITY] [IGNORE] table_name
2SET
3 column_name1 = expr1,
4 column_name2 = expr2,
5 ...
6[WHERE
7 condition];
1-- Things in brackets are optional
2-- IGNORE modifier updates rows even if errors occur (ie: the rows that cause errors are simply not updated)
3UPDATE [IGNORE] table_name
4SET
5 column_name1 = expr1,
6 column_name2 = expr2,
7 ...
8[WHERE
9 condition]; -- WHERE tells us which rows to update based on said condition
1UPDATE table_name
2SET column1 = value1, column2 = value2
3WHERE condition <= condition AND condition != condition;
1UPDATE newpurchase
2SET receive_qty = 20, pub_lang = 'Hindi', receive_dt = '2008-07-10'
3WHERE purch_price > 50;