01 2018 档案

摘要:select now()-query_start as cost_time,* from pg_stat_activity where current_query not in ( '','') and waiting='f' order by waiting,cost_time DESC; 阅读全文

posted @ 2018-01-30 10:49 我叫宋 阅读(358) 评论(0) 推荐(0)

摘要:版本1.10 以下链接为一个较低版本解决方案: http://blog.csdn.net/anmo/article/details/17083125 而我的情况有点作, 情况描述: 1,一个页面两个table,一个主table 一个弹出层table 2,每次打开弹出层,新打开的table URL会变 阅读全文

posted @ 2018-01-18 18:32 我叫宋 阅读(446) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/chenjingyi/p/5741901.html 这篇博客写的好,字符串并不是+ 效率就一定比 "%" % ('a') 就低。 按照博主写的代码我再验证了下,果然“啪啪”打脸真响。 小量变量拼接还是 + 号靠谱,而且循环1万遍,花费3毫秒,不是性能程 阅读全文

posted @ 2018-01-17 16:26 我叫宋 阅读(284) 评论(0) 推荐(0)

摘要:日期+1 select date '2018-01-14' + integer '1'; 结果: 2018-01-15 日期+1 后 转 20180101 日期字符串 select to_char(date '2018-01-14' + integer '1','yyyymmdd'); 结果:201 阅读全文

posted @ 2018-01-17 15:10 我叫宋 阅读(2328) 评论(0) 推荐(0)

摘要:安装 mongo模块 pip install pymongo 安装postgresql 驱动 pip install python-psycopg2 1 # -*- coding: utf-8 -*- 2 代码中 为mongo中有没有 "searchKey" 这列,有的话就显示,没有的话就为 '' 阅读全文

posted @ 2018-01-12 12:56 我叫宋 阅读(940) 评论(0) 推荐(0)

导航