码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
[小问题笔记(九)] SQL语句Not IN 效率低,用 NOT EXISTS试试
项目中遇到这么个情况:t1表 和 t2表 都是150w条数据,600M的样子,都不算大。但是这样一句查询 ↓select * from t1 where phone not in (select phone from t2)直接就把我跑傻了。。。十几分钟,检查了一下 phone在两个表都建了索引,字...
分类:数据库   时间:2015-02-12 19:58:40    阅读次数:210
SqLiter
1、去重select * from daydata where wtid||rectime in (select wtid||rectime from daydata group by wtid||rectime having count(wtid||rectime) > 1) and ctid n...
分类:数据库   时间:2015-02-12 17:48:11    阅读次数:423
Where is the toilet?
赖世雄英语Unit6Where‘sthetoilet?Overthere.Where‘sthedepartmentstore?Overthere.Where‘sthepostoffice?Overthere.Where‘smefather?Overthere.
分类:其他好文   时间:2015-02-12 16:31:42    阅读次数:177
oracle判断字段是否存在语句
declare v_cnt number;begin select count(*) into v_cnt from dba_tab_columns where table_name='T_IDC_FUNCTION' and column_name='TEST1'; if...
分类:数据库   时间:2015-02-12 15:40:50    阅读次数:170
Linq to Sql 总生成 where ID is null 的解决办法
using (Entities com = new Entities()){com.Configuration.UseDatabaseNullSemantics = true;}EF+MVC+cod First项目性能优化总结1.EF:this.Configuration.UseDatabaseNu...
分类:数据库   时间:2015-02-12 10:41:19    阅读次数:545
Search Insert Position
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43739647 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You...
分类:其他好文   时间:2015-02-11 22:01:19    阅读次数:193
关于How,刷墙和亲戚
对于需求而言,最宏观的概念是六字诀: Who->Where->Which->How->End->Effect;谁(Who)在什么地方(Where),对那个对象(Which)做了什么(How),做完了(End),影响是什么(Effect); 在How上面要做的文章是最多的,How其实本质就是场景,操作...
分类:其他好文   时间:2015-02-11 20:30:23    阅读次数:204
Decode放在where条件后的新用法
今天遇到一种特殊情况的查询,在查询某表时,要通过判断其中一个字段的值再用其他字段作为条件查询,比如有3个字段 columnA,columnBm,columnC,columnA的值由两个——分别是0和1,如果是0,那么我的where条件就是columnB=***,如果是1,where条件则是colum...
分类:其他好文   时间:2015-02-11 20:23:08    阅读次数:142
MySQL 基础知识
http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/MYSQL手册mysql>?show//所有命令的说明帮助信息SHOWCHARACTERSET[like_or_where]SHOWCOLLATION[like_or_where]SHOW[FULL]COLUMNSFROMtbl_name[FROMdb_name][like_or_where]SHOWCREATEDATABASEdb_nameSHOWCREATEFUNCT..
分类:数据库   时间:2015-02-11 18:51:32    阅读次数:138
oracle goldengate维护
1.配置源端具有pump、目标端具有trail的ogg环境1.1参数文件extract进程ett参数:EXTRACTettUSERIDsystem,PASSWORDoracleEXTTRAIL./dirdat/trTABLEgguser.huangliqiang,WHERE(ID=100); datapump进程dpp参数:EXTRACTdppUSERIDsystem,PASSWORDoracleRMTHOST192.168.1.29,MGRPORT780..
分类:数据库   时间:2015-02-11 18:49:42    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!