随笔 - 7
文章 - 1
评论 - 0
阅读 -
1501
06 2022 档案
批量插入数据表格
摘要:drop procedure if exists my_procedure;delimiter // #代码块分隔符create procedure my_procedure()begin DECLARE n int DEFAULT 1; WHILE n < 3 DO # 插入数据条数n inser
阅读全文
mysql查询和更新不能同时出现
摘要:mysql出现You can’t specify target table for update in FROM clause 这个错误的意思是不能在同一个sql语句中,先select同一个表的某些值,然后再update这个表。 查询结果赋值变量,再更新: select @audit_id := m
阅读全文
查杀进程
摘要:1、#pkill 进程名 2、#killall 进程名3、#kill -9 $(ps -ef|grep 进程名关键字|grep -v grep|awk '{print $2}')这个是利用管道和替换将 进程名对应的进程号提出来作为kill的参数。很显然上面的方法能完成但是过于复杂,下面这种就显得简单
阅读全文
dpkt 简单应用
摘要:import dpktfrom dpkt.utils import mac_to_str,inet_to_strcap=f'D:/test_pacp/6.pcap'with open(cap,'rb') as f: pcap = dpkt.pcap.Reader(f) for timestamp,
阅读全文
centos 挂载共享目录
摘要:共享目录://10.253.47.102/share/文件传递暂用 将共享路径挂载到centos /etc/fstab 添加一行配置,mount -a 生效
阅读全文