MySql的select语句的关键字一般顺序

SELECT
select_expr,…
FROM table_reference
[WHERE where_definition]
[GROUP BY {col_name|expr|position}]
[HAVING where_definition]
[ORDER BY{col_name|expr|positon}[DESC|ASC],…]
[LIMIT {[offset] row_count}]

 



posted @ 2019-12-23 20:54  岁岁年年  阅读(472)  评论(0编辑  收藏  举报