摘要:
参考: https://blog.csdn.net/qq_30815327/article/details/79714551 https://blog.csdn.net/jiwenyi163/article/details/2794038 两种方法 方案一 case when SELECT * FR 阅读全文
随笔档案-2020年04月
使用chrome全网页或部分网页截图
2020-04-15 14:24 by ZealouSnesS, 496 阅读, 收藏, 编辑
摘要:
1. 打开想截图的网页 2. F12或者 右键inspect 打开开发者工具 3. 在开发者工具中按下快捷键 ctrl + shift + P,打开开发者工具命令搜索框 4. 在搜索框中输入screen,弹出的几个选项就是截图,其中有全网页截图,当前屏截图,以及网页元素截图等。网页元素截图功能非常好 阅读全文
一个sql语句中用多个where
2020-04-10 10:21 by ZealouSnesS, 3449 阅读, 收藏, 编辑
摘要:
select SUM(case when total < 60 then 1 else 0 end) as 'studentMarks1', sum(case when total > 80 then 1 else 0 end) as 'studentMarks2' from School wher 阅读全文
sql 使用with as 语句报 “Only `SELECT` statements are allowed against this database”错误
2020-04-09 19:04 by ZealouSnesS, 1986 阅读, 收藏, 编辑
摘要:
with as 语句又叫CTE,公用表表达式,可以将一个sql语句的结果用一个 变量名来表示,方便后续多次引用。可以用来高性能地简化嵌套sql 参考:https://www.cnblogs.com/fygh/archive/2012/04/25/2160266.html 在使用CTE时应注意如下几点 阅读全文