索引的新理解
原来以为限制是多个字段一起限制,原来是针对单个字段的限制
数据库放到容器里
有什么好处啊
动态规划
P219file:///Users/wangguangyou/Downloads/%E7%AE%97%E6%B3%95%E5%AF%BC%E8%AE%BA%20%E7%AC%AC%E4%B8%89%E7%89%88%20.pdf
pg执行计划
每天晚上一个动态规划
如题
postgresql parallel join example
CREATETABLEpublic.pgbench_accounts_bak(aidintegerNOTNULL,bidinteger,abalanceinteger,fillercharacter(84));ALTERTABLEpublic.pgbench_accounts_bakOWNERTOp
名不正,则言不顺
写文章、写程序都这样
c++编译器处理 函数返回值
Xbar(){Xxx;returnxx;}//compilergeneratedtemporaryX__temp0;(bar(__temp0),__temp0).memfunc();
oracle join method
nestedloop,hash,andsortmergejoins
c++中的stack实现
通用、类型安全、模板简直就是巧夺天工的例子
非虚函数是静态绑定
只重新定义虚函数
函数返回const,以便控制访问
#include<stdio.h>classconst_out_parameter{private:constintarray[20];public:int*const_out_parameter_test(){returnarray;}};intmain(){const_out_par
析构函数为虚函数
否则调用基类指针时,派生类的析构函数没有被使用
c++中初始化列表顺序和声明顺序一致
a
define的误用
#defineLIGHT_SPEED3e8//m/sec(inavacuum)
模板就是让编译器帮你写代码
赞
mysql代码中设置变量
sql_set_variables
拼接index
importMySQLdbimportsysdb=MySQLdb.connect(host="127.0.0.1",#yourhost,usuallylocalhostuser="root",#yourusernamepasswd="111111",#yourpassworddb="test",po
python import vs from import
https://stackoverflow.com/questions/9439480/from-import-vs-import
python 函数定义顺序
#!/usr/bin/python#HelloWorlddeforder():print("haha")print('HelloWorld!')order()