06 2019 档案

摘要:1.left outer join先执行连接操作,再将结果通过WHERE语句进行过滤 select s.ymd,s.symbol,s.price_close,d.dividend from stocks s left outer join dividends d on s.ymd=d.ymd and 阅读全文

posted @ 2019-06-30 12:08 happygril3 阅读(104) 评论(0) 推荐(0)

摘要:1. 内连接join(默认内连接) 内连接不支持的查询: on a.ymd<=b.ymd 内连接不支持的查询: on 中使用or select a.ymd,a.price_close,b.price_close from stocks a join stocks b on a.ymd=b.ymd w 阅读全文

posted @ 2019-06-30 11:58 happygril3 阅读(174) 评论(0) 推荐(0)

摘要:1.按照一个列或者多个列对数据分组 2.对每个组进行聚合操作 3. 对聚合后的结果进行判断 1. select avg(score) as score from teacher 2. select grade, avg(score) as avg_score from teacher group b 阅读全文

posted @ 2019-06-30 10:57 happygril3 阅读(93) 评论(0) 推荐(0)

摘要:1.git status 查看状态 2.git branch 查看当前分支 3. git remove -v 查看远程库的信息 4. git diff 查看修改内容 5.git log 查看提交历史 6.添加修改 7.添加注释 8.提交到本地自己的分支 8.提交到远程自己的分支 9. 删除目录 rm 阅读全文

posted @ 2019-06-28 11:39 happygril3 阅读(100) 评论(0) 推荐(0)

摘要:select sname from teacher where sname like "q%"select sname from teacher where sname like "%an%"select sname from teacher where sname like "%ang" show 阅读全文

posted @ 2019-06-23 18:57 happygril3 阅读(107) 评论(0) 推荐(0)

摘要:1. select sname,score, case when score>=20 and score<30 then 20 when score>=30 and score<40 then 30 when score<=40 and score<50 then 40 else 50 end as 阅读全文

posted @ 2019-06-23 18:56 happygril3 阅读(157) 评论(0) 推荐(0)

摘要:sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime date -R 阅读全文

posted @ 2019-06-17 14:32 happygril3 阅读(155) 评论(0) 推荐(0)

摘要:1.有多少个不同的省? select count(distinct province) from kg_fk_city 2 2. 每个城市的数目 select city,count(city) from kg_fk_city group by city changpin 3 chaoyang 6 h 阅读全文

posted @ 2019-06-17 09:46 happygril3 阅读(98) 评论(0) 推荐(0)

该文被密码保护。

posted @ 2019-06-04 18:17 happygril3 阅读(4) 评论(0) 推荐(0)

导航