Home  >  Article  >  Database  >  What is the statement to modify data in MySQL?

What is the statement to modify data in MySQL?

WJ
WJOriginal
2020-05-30 16:48:046968browse

What is the statement to modify data in MySQL?

The key statement for MySQL to modify data is "UPDATE"

The syntax is as follows:

UPDATE table_name SET field1=new-value1, field2=new-value2[WHERE Clause]

First open the mysql tool (use Navacate for mysql as an example)

Download address://m.sbmmt.com/xiazai/gongju/757

Then select to test table, click [Query]-》[New Query]

What is the statement to modify data in MySQL?

Then enter the sql modification statement:

What is the statement to modify data in MySQL?

Finally Check whether the data in the table has changed.

Related references:php中文网

The above is the detailed content of What is the statement to modify data in MySQL?. 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