创建表:
1.create table <表名>(数据类型(长度),......)
2.create table db_01(id int(10) primary key auto_increment
name varchar(20) not null,
sex int(4) default '0'
);
删除表:
drop table <表名>; 删除整个表
插入表:
insert into <表名> values(1,'李四','男');
查询语句:
1.查询所有:select * from tb_01;
2.查询前两行:select * from tb_01 order by id limit 0,2;
注:order by 排序 limit 0,2 续前两个
删除语句:
delect from<表名> where id=1;
修改语句:
update <表名> set name='李四' where id=1;