Use Navicat to implement DML (addition, deletion and modification of table data)

How to use Navicat?

After Navicat is configured, connect to the database.

Click any new query in the tables after the query, and a query editor will pop up.

 I created the stu table in the initial sql. It will not be created here.

 

 First select the required table, select * from table name;

Add to:

INSERT into table name (column name 1.....) values ​​(value 1.....)

For example:

INSERT into stu(id,name) values(1,'Zhang San');

You can view it by right-clicking on the select line and running it. The following will run and omit this sentence.

renew:

 update table name set column name 1 = value 1 where name = .....

  

 If no where is added, it will all become value 1

delete:

delete from table name where condition;

Otherwise, all will be deleted;

delete from stu where name = 'Zhang San';

 

Guess you like

Origin blog.csdn.net/zhi6fui/article/details/130092193