向表中插入数据
insert into 表名(字段1,字段2,字段3) values(数值1,数值2,数值3);
insert into 表名(字段1,字段2,字段3) values(数值1,数值2,数值3),(数值4,数值5,数值6),(数值7,数值8,数值9);
查询表中的数据
select * from tab01 where id=1;
select * from tab01 where id like ‘%1%‘;
select * from tab01 where id like ‘%1%‘ order by id desc;
select * from tab01 where id like ‘%1%‘ order by id asc;
select * from tab01 where id like ‘%1%‘ order by id desc limit 3;
原文:https://www.cnblogs.com/testerg/p/14729773.html