上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: or的用法 in 的用法 union all 的用法 阅读全文
posted @ 2018-06-22 10:25 流星小子 阅读(162) 评论(0) 推荐(0) 编辑
摘要: DROP PROCEDURE IF EXISTS test_proc; CREATE PROCEDURE test_proc() BEGIN declare i int default 0; set autocommit = 0; while i<10000000 do INSERT INTO BT ( ID,VNAME ) VALUES( i, CONCAT( 'M'... 阅读全文
posted @ 2018-06-22 10:16 流星小子 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 项目中遇到这么个情况: t1表 和 t2表 都是150w条数据,600M的样子,都不算大。 但是这样一句查询 ↓ 直接就把我跑傻了。。。十几分钟,检查了一下 phone在两个表都建了索引,字段类型也是一样的。原来not in 是不能命中索引的。。。。 改成 NOT EXISTS 之后查询 20s , 阅读全文
posted @ 2018-06-22 10:04 流星小子 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 1.索引的使用 查询 表的锁show index from qk_auth_employee 2.走索引 EXPLAIN SELECT * from qk_auth_employee where DataDate = '2018-06-20' 3.走索引 EXPLAIN SELECT * from 阅读全文
posted @ 2018-06-21 17:01 流星小子 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1. Mysql 数据库查询语句 2. Sql Server 数据库查询语句 阅读全文
posted @ 2018-06-21 11:29 流星小子 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 1.java/scala的安装 - 安装JDK下载: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html jdk-8u151-windows-x64双击傻瓜式一步一步安装,需要等一点时 阅读全文
posted @ 2018-06-17 14:12 流星小子 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-15 10:15 流星小子 阅读(119) 评论(0) 推荐(0) 编辑
摘要: import numpy as np #(1)零均值化def zeroMean(dataMat): meanVal=np.mean(dataMat,axis=0) newData =dataMat -meanVal return newData, meanVal#3、选择主成分个数def percentage2n(eigVals,percentage): sortArra... 阅读全文
posted @ 2018-06-07 16:23 流星小子 阅读(603) 评论(0) 推荐(0) 编辑
摘要: import numpy as np def main(): #1-- Integral积分 from scipy.integrate import quad, dblquad, nquad print(quad(lambda x:np.exp(-x),0,np.inf)) print(dblquad(lambda t,x:np.exp(-x*t)/t**3, 0... 阅读全文
posted @ 2018-06-01 17:54 流星小子 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import matplotlib.pyplot as plt def main(): #scatter fig = plt.figure() ax = fig.add_subplot(3,3,1) n = 128 X = np.random.normal(0,1,n) Y = np.random.normal... 阅读全文
posted @ 2018-06-01 17:32 流星小子 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页