![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL使用
夜跑
从事数据挖掘/分析
展开
-
SQL 查询操作符 连接查询 子查询
文章目录SQL增删改查--查询操作符和子查询and; orin; not inbetween...and...like "字符串"is [not] nulldistinctas 重命名limit 3SQL增删改查–查询操作符和子查询查询操作符and; or“和” “或” 联合多个条件进行查询select * from fruitswhere s_id=101 and f_id="...原创 2019-07-29 19:06:48 · 535 阅读 · 0 评论 -
SQL 增删改查
文章目录SQL 增删改查创建数据库"增" 导入数据"删""改""查"SQL 增删改查特别是条件查询(where, group by, order by等)创建数据库use test;create table Monthly_Indicator( city_name varchar(20) not null, # varchar 可变长度字符串; not null 非空 mon...原创 2019-07-26 18:32:42 · 250 阅读 · 0 评论 -
SQL 聚合 & 分组查询
文章目录SQL 聚合01 unll 值得存在02 count 计数03 sum04 min max | avg 平均值05 group by 分组SQL 聚合01 unll 值得存在是一种数据类型, 表示sql中没有数据. 学习使用 COUNT 时你将首次接触到这一现象。需要知道空值是什么意思, 需要如何操作空值.where id is null; 不可以使用 where id...原创 2019-08-06 23:16:16 · 685 阅读 · 0 评论