MySQL command entry basis (b)

13. The data added to the table data
as part of the data field is added (added in the student data table)
INSERT INTO student SET name = 'Wang';
add data for all fields
INSERT INTO student values ( 'wangmei',. 1);
14. A query data
look-up table all the data
select * from student;
lookup table part of the field (see the column in the student's name table)
the SELECT name from student;
simple data query conditions
the SELECT * from student the WHERE class = 1;
15. the modified data (name zhaoxin class is changed. 6)
Update Student SET. 6 WHERE name = class = 'zhaoxin';
16. a delete data (omitted in the name of zhaoxin)
delete from Student WHERE name = 'zhaoxin';

Published 30 original articles · won praise 32 · views 990

Guess you like

Origin blog.csdn.net/cleverlemon/article/details/100996116