- 博客(3)
- 收藏
- 关注
原创 查询在表a中但不在表b中的数据
表a 表b 查询在a中但不在b中的数据 a、b表,找出id字段中,存在a表,但是不存在b表的数据。 方法一: 子查询统计的是关联上的记录,等于0就是关联不上,就不存在(是方法三的三倍) select * from a where (select count(1) as num from b where b.id = a.id) = 0 方法二: select distinct a.id from a where a.id not in (select id from b); 方法三: left join…o
2021-01-12 16:46:02
3850
原创 Linux常用命令
Linux常用命令 查看端口 netstat -ntpl 查询定时任务 crontab -l 创建定时任务 crontab -e 例:30 19 * * * back sh /home/shell/back.sh #每一天的19:30执行定时任务 i 编辑 esc 退出 :wq 保存 关机 (系统的关机、重启以及登出 ) shutdown -h now 关闭系统 init 0 关闭系统 telinit 0 关闭系统 shutdown -h hours:minutes & 按预定时间关闭系统 shu
2020-12-30 18:49:15
207
原创 tomcat升级版本升级
tomcat升级 1:查看当前tomcat版本: 一般tomcat安装在/usr/local/下 cd 至apache-tomcat-xxx/bin sh version.sh命令,查看版本信息 2:下载需要的tomcat安装包: 下载网址:https://tomcat.apache.org/ 选择需要下载的版本: 3:去服务器备份apache-tomcat-xx 下的全部文件。 来到apache-tomcat-xx同级目录新建一个文件夹: 命令:mkdir tomcat-backups 复制apache
2020-12-30 17:07:42
10094
13
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅