行号
大小写转换 ctrl +shift +u 大写 ctrl +shift +l 小写
笔记
如何自由转换queries大小写
如何显示Line Number
如何自由转换 queries 大小写
SQL快速大小写转换
2 where ... or...
where ... and...
where ... like '% abc %',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%表示前面或后面有一个或者多个其他字符
where ... like 'abc %',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%表示以abc开头,后有一个或者多个其他字符
where ... like '_ abc ',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,_表示abc前面有一个任意字符
where ... in...
where ... not in...
where ... is null
where ... is not null...
1 count(col)某列的行数
2 distinct(col)某列不同数字,类似set
3 count(distinct(col))某列不同数字的行数,sum_number(set)
4 avg(列名)————返回一个值,求这个列的平均数
min(列名)————返回一个值
max(列名)————返回一个值
sum(列名)————返回一个值
5 如果 select 列名,avg(列名)后面要加+group by 列名
因为列名为多组数,avg(列名)为一组数,不对应,所以要加上group by
6 having + max/avg/sum/min 语句
自由转换queries大小写
Edit-Advanced
技巧-显示Line Number
自由切换queries(查询) 大小写
显示Line Number方法
显示行号
自由转换大小写