mysql Update statement
Translation results:
UK[ˌʌpˈdeɪt] US[ʌpˈdet]
vt. Update, modernize; correct, amend
n. Modernize; updated information; updated behavior or instances
Third person singular: updates Plural: updates Present participle: updating Past tense: updated Past participle: updated
mysql Update statementsyntax
Function: Used to modify the data in the table.
Syntax: UPDATE table name SET column name = new value WHERE column name = some value
mysql Update statementexample
//为 lastname 是 "Wilson" 的人添加 firstname UPDATE Person SET FirstName = 'Fred' WHERE LastName = 'Wilson'; //为lastname是"wilson" 的人修改地址(address),并添加城市名称(city) UPDATE Person SET Address = 'Zhongshan 23', City = 'Nanjing' WHERE LastName = 'Wilson';