摘要:
一、配置prometheus 1、修改配置文件 [root@mongodb05 cfg]# cat prometheus.yml# my global configglobal: scrape_interval: 15s # Set the scrape interval to every 15 s 阅读全文
摘要:
1、查找表中多余的重复记录,重复记录是根据单个字段(Id)来判断 select * from 表 where Id in (select Id from 表 group byId having count(Id) > 1) 2、删除表中多余的重复记录,重复记录是根据单个字段(Id)来判断,只留有ro 阅读全文
摘要:
sql 查出一张表中重复的所有记录数据 1.表中有id和name 两个字段,查询出name重复的所有数据 ? 1 select * from xi a where (a.username) in (select username from xi group by username having co 阅读全文
摘要:
1、直观方法 li=[1,2,3,4,5,1,2,3]new_li=[]for i in li: if i not in new_li: new_li.append(i)print(new_li)123456 总结:这样可以做出来,但是效率不行。但是此方法保证了列表的顺序性。 2、利用set的自动去 阅读全文
摘要:
转载:https://cloud.tencent.com/developer/article/1507132 Show engine innodb status 这个命令估计搞MYSQL的听见这个,第一个反应就是烂大街了。这个命令不会你就快回家吧? OK 那show engine innodb st 阅读全文
摘要:
SyntaxError: Non-ASCII character '\xe4' in file test1.py on line 8, but no encoding declared; python脚本内容 1、原因 Python默认是以ASCII作为编码方式的,需要在文件开头设置一下编码 2、解 阅读全文