0 votes
in MariaDB by
How can you change or update the already inserted records of a MariaDB table?

1 Answer

0 votes
by
The UPDATE statement is used to change, update or modify the existing records of a MariaDB table. It can be used with WHERE, ORDER BY and LIMIT clauses.

Syntax:

UPDATE table_name SET field=new_value, field2=new_value2,...    

[WHERE ...]   

For example

We have a table "Test", having the following data:

Mariadb Select limit 1

Let's change the 'title' "Welcome to MariaDB" where 'title' was "Hello".

Mariadb Select limit 1
...