What is the syntax of modify statement in mysql database

王林
Release: 2020-05-07 10:19:14
Original
8390 people have browsed it

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'
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!