Database table manipulation statements

1. Add data

The INSERT  the INTO table name (Column 1 names, column names, 2) values (value 1 value 2 ,,); - add a data

2. Delete Data

DELETE  the FROM table WHERE condition; - delete one by one, if not the conditions to delete all data 
TRUNCATE  TABLE table name; - create the same table structure of the table after a delete table

3. Modify the data

UPDATE table SET column name 1 = value 1, 2 column name = value 2 the WHERE condition - all data modifications without modifications if the condition is data table

 

4. The lookup table records

Guess you like

Origin www.cnblogs.com/aikang525/p/12172402.html