09 2021 档案

摘要:https://www.nowcoder.com/practice/58824cd644ea47d7b2b670c506a159a6?tpId=82&tags=&title=&difficulty=0&judgeStatus=0&rp=1 按照salary的累计和running_total,其中ru 阅读全文
posted @ 2021-09-30 16:08 小茅屋 阅读(537) 评论(0) 推荐(0)
摘要:错误: delete from titles_testwhere id not in( select min(id) from titles_test group by emp_no) 正确:给子查询表添加别名 delete from titles_testwhere id not in(selec 阅读全文
posted @ 2021-09-29 16:55 小茅屋 阅读(104) 评论(0) 推荐(0)
摘要:force index(key):强制走索引key select * from salaries force index(idx_emp_no)where emp_no = 10005 阅读全文
posted @ 2021-09-29 10:09 小茅屋 阅读(1565) 评论(0) 推荐(0)
摘要:create view actor_name_view AS select first_name first_name_v,last_name last_name_v from actor; https://www.nowcoder.com/practice/b9db784b5e3d488cbd30 阅读全文
posted @ 2021-09-28 17:32 小茅屋 阅读(48) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_39947101/article/details/88056705 阅读全文
posted @ 2021-09-28 16:37 小茅屋 阅读(47) 评论(0) 推荐(0)
摘要:该语法可以理解为:将主查询的数据,放到子查询中做条件验证,根据验证结果(TRUE 或 FALSE)来决定主查询的数据结果是否得以保留。 https://blog.csdn.net/xiangwang2016/article/details/88204331 SQL EXISTS 语法 https:/ 阅读全文
posted @ 2021-09-28 16:22 小茅屋 阅读(50) 评论(0) 推荐(0)
摘要:https://www.nowcoder.com/practice/ac233de508ef4849b0eeb4f38dcf09cf?tpId=82&tags=&title=&difficulty=0&judgeStatus=0&rp=1 create table actor(actor_id sm 阅读全文
posted @ 2021-09-28 15:48 小茅屋 阅读(59) 评论(0) 推荐(0)
摘要:mysql的截取字符串方法: 1.2.3. 阅读全文
posted @ 2021-09-28 13:54 小茅屋 阅读(8) 评论(0) 推荐(0)
摘要:https://www.nowcoder.com/practice/b9068bfe5df74276bd015b9729eec4bf?tpId=82&tags=&title=&difficulty=0&judgeStatus=0&rp=1 SELECT emp_no,salary,dense_ran 阅读全文
posted @ 2021-09-28 13:49 小茅屋 阅读(162) 评论(0) 推荐(0)
摘要:11 阅读全文
posted @ 2021-09-27 23:14 小茅屋 阅读(9) 评论(0) 推荐(0)