select * from 表名;
select 字段名 from 表名;
select 字段名 from 表名 where 条件(例id>3);
select 原名 as 更改名 from 表名;
select *from 表名 where 字段名 like 该字段里的其中一个字符(例‘小%’,则查询出该字段里所有以小字开头的数据,‘%百分号代表后面多个’,‘_下划线代表一个’)
select * from 表名 order by 字段名;(默认升序:asc)
select * from 表名 order by 字段名 desc;(降序:desc)
select * from 表名 order by 字段名 limit 2;# 以字段名的升序取两条数据,2为限制两条数据
select * from 表名 order by 字段名 limit 2,2;
如对本文有疑问, 点击进行留言回复!!
集合类 ArrayList 和 LinkedList 直接用 Innodb(MySQL 5.0
MySQL Innodb 存储结构 和 存储Null值 用法详解
网友评论