Home  >  Article  >  Database  >  What is the syntax of modify statement in mysql database

What is the syntax of modify statement in mysql database

王林
王林Original
2020-04-27 10:05:268505browse

What is the syntax of modify statement in mysql database

Update statement is generally used in conjunction with WHERE to specify the conditions for the piece of data to be changed. Use UPDATE's SET to modify the specified field to the specified value.

The syntax is as follows:

What is the syntax of modify statement in mysql database

(Video tutorial recommendation: mysql video tutorial)

For example: To modify Person The FirstName in the data table where LastName is equal to Wilson is Fred, and the SQL statement is:

UPDATE Person SET FirstName = 'Fred' WHERE LastName = 'Wilson'

What is the syntax of modify statement in mysql database

Recommended tutorial: mysql tutorial

The above is the detailed content of What is the syntax of modify statement in mysql database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn