SQL语句的执行顺序 (1)from (3) join (2) on (4) where (5)group by(开始使用select中的别名,后面的语句中都可以使用) (6) avg,sum.... (7)having (8) select (9) distinct (10) order by 删 ...
分类:
数据库 时间:
2021-04-26 13:21:14
阅读次数:
0
如何每秒执行任务? 没有直接的解决方案。因为在Cron中,最小的时间帧是分钟,不能进行每秒钟执行某个任务。 # 方案一:systemd Timer 可以使用systemd Timer,它支持以秒为时间帧来执行任务。 # 方案二:Shell Script 在Cron中,最小的时间帧是分钟。因此可以写一 ...
分类:
其他好文 时间:
2021-04-24 13:38:24
阅读次数:
0
select #include<sys/select.h> int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout); // 被监听的文件描述符的总数,可读、 ...
分类:
其他好文 时间:
2021-04-24 13:30:52
阅读次数:
0
文章目录python脚本调用shell命令os.system()os.popen()subprocess.call()subprocess.Popen()commandspython脚本传参数给shell命令python脚本获取命令行用户输入参数python传参数给shell命令python传参数给 ...
分类:
编程语言 时间:
2021-04-24 13:19:00
阅读次数:
0
转 select *, count(distinct name) from table group by name结果:id name count(distinct name) 1 a 1 2 b 1 3 c 1 最后一项是多余的,不用管就行了,目的达到。原来mysql这么笨,轻轻一下就把他骗过去了 ...
分类:
其他好文 时间:
2021-04-24 11:59:34
阅读次数:
0
Oracle索引建立原则 确定针对该表的操作是大量的查询操作还是大量的增删改操作。 尝试建立索引来帮助特定的查询。检查自己的sql语句,为那些频繁在where子句中出现的字段建立索引。 where语句中不得不对查询列采用函数查询,如upper函数,最好建立相应函数索引; 在SQL语句中经常进行GRO ...
分类:
数据库 时间:
2021-04-24 11:52:47
阅读次数:
0
SELECT areaName FROM area ORDER BY CONVERT ( areaName USING gbk ) COLLATE gbk_chinese_ci ASC 说明: areaName为列名 area为表名 ...
分类:
数据库 时间:
2021-04-24 11:51:48
阅读次数:
0
powershell快捷打开方式 powershell打开:在任意目录下,按住shift,然后右键,选择“在此处打开powershell”即可 常用dos命令 #盘符切换 d:\ ...
分类:
其他好文 时间:
2021-04-23 12:05:00
阅读次数:
0
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
https://blog.csdn.net/dietime1943/article/details/72742651 错误的做法: update 表1 set 表1.字段= (SELECT表2.字段FROM表2 where 表2.ID = 表1.ID) 后面这种情况其实可以使用left join的方 ...
分类:
数据库 时间:
2021-04-23 12:02:59
阅读次数:
0