sql语法

sql是为计算机声明了一个你想从原始数据中获得什么样的结果的范例,而不是告诉计算机如何得到结果。

语法顺序:1.select[distinct]  2.from  3.where  4.group by  5.having  6.union  7.order by

执行顺序:1.from  2.where  3.group by  4.having  5.select  6.distinct  7.union  8.order by

注意点:·执行顺序第一是from,而不是select

原文地址:https://www.cnblogs.com/gaara-zhang/p/8611405.html