10-总结
查询的完整格式 ^^ 不要被吓到 其实很简单 ! !
SELECT select_expr [,select_expr,...] [
FROM tb_name
[WHERE 条件判断]
[GROUP BY {col_name | postion} [ASC | DESC], ...]
[HAVING WHERE 条件判断]
[ORDER BY {col_name|expr|postion} [ASC | DESC], ...]
[ LIMIT {[offset,]rowcount | row_count OFFSET offset}]
] select distinct *
from 表名
where ....
group by ... having ...
order by ...
limit start,count注意事项:
Last updated