Mysql data increase, modify, delete.

adding data:

Insert Into table (field) values ​​(data to be added) NOTE: To field names and data are relative

change the data:

update table set field = name to be modified into a field name NOTE: This modification is to modify the entire data field, if the individual data to be modified to specify the need to add Where the modified content.

For example: update student table set age age = '18 'modified to 18 where id = 1 is equal to the specified ID is modified to a person aged 18 designated according to their own

delete data:

DELETE FROM table name deleted comprehensive data table Note; Do not use the DELETE command, before use should be carefully considered.

Use in specifying deleted data

DELETE FROM table where field name in ( '1001', '1002', '1003') specifies the ID data to be deleted.

 

Guess you like

Origin www.cnblogs.com/xxx123/p/11647322.html