码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
删除某个数据库下面的所有表
USE test-- 删除所有的 (约束 F)DECLARE @countF INTSET @countF = (SELECT COUNT(*) FROM test.sys.objects WHERE type = 'F')PRINT '一共有' + CAST(@countF AS VARCHAR(...
分类:数据库   时间:2015-03-11 16:30:24    阅读次数:158
How to Map Distinct Value Types Using Java Generics--reference
原文:http://www.codeaffine.com/2015/03/04/map-distinct-value-types-using-java-generics/Occasionally the average developer runs into a situation where he...
分类:编程语言   时间:2015-03-11 16:20:28    阅读次数:155
datanode集群新加硬盘
将硬盘挂载到指定目录,如/data在hdfs-site.xml中修改 dfs.datanode.data.dir file://${hadoop.tmp.dir}/dfs/data,/data Determines where on the local filesystem an DFS data ...
分类:其他好文   时间:2015-03-11 14:23:44    阅读次数:111
oralce中in和exists性能分析
在我们平常写sql的时候,in和exists这两个关键词会经常用到,所以我们有必要对它们的性能作一个分析。 [in和exists性能分析]  1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ;     T1数据量小而T2数据量非常大时,即数据量T1 2) select * from T1 where T...
分类:其他好文   时间:2015-03-11 10:54:28    阅读次数:119
Monad in Scala
Scala有很强的类型系统。加上一些隐式规则,我们可以在scala里模拟haskell的monad。 先从haskell的monad type class开始: class Monad M where ret :: a -> M a bind :: M a -> (b -> M b) -> M b ...
分类:其他好文   时间:2015-03-11 00:40:15    阅读次数:151
查询oracle数据中所有表的大小
selectt.bytes,TO_CHAR((t.bytes)/(1024*1024),‘999G999D999‘),t.*fromsys.dba_segmentstwheret.owner=‘xxxxx‘orderbyt.bytesdesc
分类:数据库   时间:2015-03-10 19:42:31    阅读次数:307
Swift的关键字
常见的关键字有以下4种:1、与声明有关的关键字:class,deinit,enum,extension,func,import,init,let,protocol,static,struct,subscript,typealias,var2、与语句有关的关键字:break,case,continue,default,do,else,fallthrough,if,in,for,return,switch,return,where,while3、..
分类:编程语言   时间:2015-03-10 19:39:30    阅读次数:144
mysql 密码找回
mysql相关:mysql--help|grepmy.cnf配置文件添加skip-grant-tables重启服务(改密码)mysqlusemysqlupdateusersetPassword=Password(‘111111‘)whereUser=‘root‘;flushprivileges;
分类:数据库   时间:2015-03-10 19:37:43    阅读次数:202
postgreSQL dropdb时 连接未关闭
如下图:  解决步骤: 1 . select * from pg_stat_activity where datname ='lnarterydb'   //查询该库有哪些会话 查询结果会有两个pid  2. SELECT  pg_terminate_backend(pid) ;     //中断该会话,回滚未提交事物 关于 pg_terminate_backend(pid) 函...
分类:数据库   时间:2015-03-10 19:26:28    阅读次数:127
批量更新语句
update a表 set a.filed =(select field from b表 where b.关联字段=c.关联字段) from b表, c表 where b.关联字段=c.关联字段 and 其他条件
分类:其他好文   时间:2015-03-10 18:39:58    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!