- 博客(3)
- 收藏
- 关注
转载 [转]SQL书写规范
一、SQL书写规范 1、 语句中出现的所有表名、字段名全部小写,系统保留字、内置函数名、Sql保留字大写。 2、 连接符or、in、and、以及=、=等前后加上一个空格。 3、 对较为复杂的sql语句加上注释,说明算法、功能。 注释风格:注释单独成行、放在语句前面。 (1) 应对不易理解的分支条件表达式加注释; (2) 对重要的计算应说明其功能; (3) 过长的函数实现,应将其语句按实现的功能分段...
2019-06-22 21:16:58
184
转载 【转】SQL基本语法和书写格式
SQL基本语法和书写格式 插入 insert [into] 表名 [(列名列表)] values (值列表) insert into 新表名 (列名列表) select 列名列表 from 表名 select 表名.列名 into 新表名 from 表名 insert 表名(列名列表) select 值列表1 union select 值列表2 修改 update 表名 set 列名 = 更新值 ...
2019-06-22 19:36:07
242
原创 ****SQL zoo练习题目***
GROUP BY and HAVING. The HAVING clause is tested after the GROUP BY. You can test the aggregated values with a HAVING clause. Show the total population of those continents with a total population of ...
2019-06-07 16:27:16
200
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人