- 博客(15)
- 资源 (2)
- 收藏
- 关注
转载 yum命令无法正常运行 YumRepo Error: All mirror URLs are not using ftp, http[s] or file.centos6 yum失败了
yum命令无法正常运行: 报错:YumRepo Error: All mirror URLs are not using ftp, http[s] or file.centos6 yum失败! 参考: https://blog.youkuaiyun.com/weixin_45621658/article/details/110734514 原因:centos6的默认源在2012年-12月左右被官方搞掉了 一般执行了前3条命令就好了 sed -i "s|enabled...
2021-01-25 16:14:31
264
2
原创 mysql 锁表查询和解锁操作
1.查看目前mysql数据库锁表的情况SELECT *FROM information_schema.INNODB_TRX;2.杀掉查询结果中已经锁表的trx_mysql_thread_idkill trx_mysql_thread_id
2020-08-20 10:57:05
448
原创 mysql 存储过程动态传递参数
先在网上找了一些资料如:delimiter //create procedure oneKey(in newName varchar(250),in oldName varchar(250),in idNum INT)BEGIN SET @sqlStmt = CONCAT('insert into ',newName,' (`name`,`age`,`sex`,`major`,`pass`,`photo`) select `name`,`age`,`sex`,`major
2020-08-20 10:56:25
573
原创 mysql索引使用like的时候出现的问题
问题描述:在使用like的时候发现没有走预想的索引: 场景:表community中字段较多,创建了部分索引,如: EXPLAIN select t1.id,t1.baidu_latitude,t1.baidu_longitude,t1.community_name_alias,t1.community_address_alias FROM community t1 WHERE t1.city_id= 110100 and t1.baidu_latitude like '31.2...
2020-08-20 10:53:51
204
原创 linux 系统中git的时候由于用了chmod更改权限之后导致不能git pull
直接在该目录下执行:$ git config core.filemode false这样就可以啦
2020-08-20 10:49:38
460
原创 pymongo中判断索引是否已经存在,如果不存在则创建,且 在 pymongo 中使用 sort 和limit
# 查看是否有以“id”创建的倒序索引,如果没有则添加indexs = collection_target.index_information()if "id_-1" not in indexs: collection_target.create_index([("id", -1)])# 先查询表中已经存在的记录的最大id的记录find_one = collection_target.find().sort([('id', pymongo.DESCENDING)]).limit(1).
2020-08-20 10:46:22
1090
原创 pymongo 中的模糊查询以及以某个值开始的模糊查询【pymongo $regex /^】
说明:主要是mongodb数据库的客户端中的shell命令查询和Python中的查询语法有些诧异:模糊查询诧异: shell中: db.getCollection('郑州').find({community_name_pinyin:/^search_value/})【查询以search_value开始的数据】 db.getCollection('郑州').find({community_name_pinyin:/search_value/})【查询字段中包含search_val
2020-08-20 10:44:53
1755
原创 idea 中手动导入jar包
1:在pom.xml中配置相应的配置,如:我想要引入junrar-4.0.0.jar 这个jar包<dependency> <groupId>com.github.junrar</groupId> <artifactId>junrar</artifactId> <version>4.0.0</version> </depen.
2020-08-20 10:40:54
803
原创 MySQL 函数之求取一个表中的某个字段的中位数
CREATE DEFINER=`root`@`%` FUNCTION `get_median_from_communityhistoryprice`() RETURNS floatBEGINdeclare return_value float;declare median int;declare median2 int;declare median_even_1 int;declare...
2019-07-10 19:07:25
701
原创 easyui table 组件使用时候 列头居中显示,内容不居中显示
代码:$('#bidDataGrid').treegrid({ striped : true, rownumbers: true, autoRowHeight: true, idField:'id', treeField: 'planName', singleSelect: fals...
2018-10-28 23:05:18
1085
原创 mysql 中实现split功能,然后实现两个类似list集合的求并集的操作
查询语句:select splitFun('$#_a1$#_a2$#_a3$#_','$#_b1$#_b2$#_a1$#_','$#_') from dual;然后返回结果为:$#_a1$#_a2$#_a3$#_b1$#_b2$#_ 存储过程:CREATE DEFINER=`pnggu`@`%` FUNCTION `splitFun`(community_str varcha...
2018-10-18 15:52:44
822
转载 EasyUI-DataGrid多行动态选择性合并算法实现
http://blog.youkuaiyun.com/chenleixing/article/details/44229359这篇博客讲的不错,最主要的是能用!!!
2017-03-09 14:04:29
317
原创 关于EasyUI中的treegrid数据在页面加载慢的问题
在做周进度统计的时候遇到了这个问题:页面后台返回的数据也就200多k,但是页面得卡5秒左右才能显示出来,而且折叠树的时候页面也反应很慢,经过仔细查阅终于找到了问题的所在:有问题的代码:$('#tg1').treegrid({ striped : true, rownumbers: false, autoRowHeight: true, idFie...
2017-02-22 15:48:41
6067
2
AsposeReadExcel.java
2020-08-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人