码迷,mamicode.com
首页 >  
搜索关键字:t1    ( 4339个结果
show命令
数据库show databases;表show tables;show tables in xxdb;show tables 'a*';tblpropertiesshow tblproperties t1;分区show partitions t1;show partitions t1 partiti...
分类:其他好文   时间:2015-06-08 14:54:08    阅读次数:125
Hive创建指向HBase表的表
create [external] table t1(id int, value string) stored by 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' with serdeproperties('hbase.column.mappi...
分类:其他好文   时间:2015-06-08 14:49:01    阅读次数:91
update多表更新的2种方式
update t1 set TermBeginQty =isnull((select top 1 JiaoPlusQty from WMS_RptMaterialPutDaily r where t1.MO=r.MO and (t1.MouldNO = r.MouldNO o...
分类:其他好文   时间:2015-06-05 09:59:34    阅读次数:186
hdu 2254(矩阵快速幂+分治)
题解:首先要城市要离散化,根据离散数学中可达矩阵的定义,给出一个有向图的邻接矩阵A,res = (A + E)^n表示这个矩阵n步后的可达情况,res[i][j]表示点i经过n步后到点j的方法数,那么给出了t1至t2后从v1到v2的方法数,就是要计算A^t1 + A^(t1 + 1) + … + A^(t2) 用了分治的思想计算,之前有写过模板http://blog.csdn.net/hyczms...
分类:其他好文   时间:2015-06-04 22:50:28    阅读次数:159
mysql 关联删除
参考网址:http://www.111cn.net/database/mysql/51146.htm原网页广告太多,自己抄了下。1、delete from t1 where 条件2、delete t1 from t1 where 条件3、delete t1 from t1,t2 where 条件4、...
分类:数据库   时间:2015-06-04 20:46:17    阅读次数:117
一个简单的并发程序
packagep2; publicclassTestThread{ publicstaticvoidmain(Stringargs[])throwsInterruptedException{ Thread1t1=newThread1(); newThread(t1).start(); newThread(t1).start(); newThread(t1).start(); newThread(t1).start(); t1.stop(); } } classThread1extendsThread{ ..
分类:其他好文   时间:2015-06-04 17:24:06    阅读次数:84
BZOJ 4103~4105 THUSC2015 题解
T1:BZOJ 4013 xor 题目大意:给定一个长度为nn的数列aa和一个长度为mm的数列bb,给定矩阵AA,令Ai,j=ai⊕bjA_{i,j}=a_i\oplus b_j,qq次询问某个子矩形里的kk大值 n≤1000,m≤3?105,q≤500n\leq 1000,m\leq 3*10^5,q\leq 500刚看到这题的时候我发现我不会,看到数据范围的时候我发现出题人也不会…… 如果...
分类:其他好文   时间:2015-06-03 21:47:07    阅读次数:477
boost的原子操作
[cpp] view plaincopy int a=0;   std::cout boost::thread t1([&](){              for (int cnt=0;cnt     {           a+=1;       }      });   boost::thread t2([&](){       for (...
分类:其他好文   时间:2015-06-03 17:48:18    阅读次数:426
HDU ACM 5254 棋盘占领->暴力枚举
分析:暴力,注意有公共点是指两个城池是否相邻。 #include #include using namespace std; bool map[505][505]; vector vx; vector vy; int n,m; bool judge(int x,int y) { bool t1,t2,t3,t4; t1=t2=t3=t4=0; if(x>1 && map[x-1][y...
分类:其他好文   时间:2015-06-03 10:04:18    阅读次数:115
Python学习(十一) Python数据类型:字典(重要)
字典dict: 字典其实就相当于java里面的Map,用来存储键值对的。其中存储的数据时无序的。 假如有这样的数据: t1=['name','age','sex'] t2=['tom',30,'male'] 通过zip(t1,t2)可以获取到这样的数据[('name','tom'),('a...
分类:编程语言   时间:2015-06-03 00:36:58    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!