码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
oracle 记录被别的用户锁住
找出数据库的serial#,以备杀死:select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logo...
分类:数据库   时间:2015-06-09 19:38:18    阅读次数:115
PL/SQL Developer自动补全SQL技巧
s = SELECT t.* FROM tw = WHEREb = BETWEEN ANDl = LIKE '%%'o = ORDER BYinsw = IN (SELECT a FROM a WHERE a )sw = SELECT t.* FROM t WHERE tsc* = SELE...
分类:数据库   时间:2015-06-09 19:30:34    阅读次数:257
SCN 时间戳的相互转换
SQL> select * from v$version where rownum=1; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Prod...
分类:其他好文   时间:2015-06-09 17:35:43    阅读次数:113
C# 该行已经属于另一个表 的解决方法
产生错误的代码:DataTable dtContract_src = Oper.GetDataTable("select * from T_Contract where ProjectID=" + ProjectID_src + " and Flag=0", con_src); foreach (DataRow dr in dtContract...
分类:Windows程序   时间:2015-06-09 17:19:37    阅读次数:191
Leetcode[1]-Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where in...
分类:其他好文   时间:2015-06-09 17:12:28    阅读次数:97
Container With Most Water :
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin...
分类:其他好文   时间:2015-06-09 13:53:19    阅读次数:104
Mac 下使用sqlite3命令行
sqlite3 命令行简单使用sqlite3 路径 //打开数据库路径连接 select * from sqlite_master where type=”table”; //显示所有表 select * from testable; //显示某张表数据 .help //查看帮助 .q...
分类:数据库   时间:2015-06-09 13:46:32    阅读次数:135
执行计划总结
1.全表扫描(table access full)的情况:a.where条件中如果有like,那么无论like后的字段是否加了索引或者是否有unique约束,都会有是全表扫描。这种情况消耗的IO比较高,一般都好几千以上。b.没有where条件,这种情况肯定是全表查询。2.通过rowid的表存取(Ta...
分类:其他好文   时间:2015-06-09 13:24:10    阅读次数:122
oralce递归函数
语法: select * from table where 条件1 [语句一] start with 条件2 [语句二] connect by prior 当前表字段=级联表字段 [语句三]说明:con...
分类:其他好文   时间:2015-06-09 13:17:08    阅读次数:84
对于insert 与 copy 性能的测试
lsd_base=> insert into panj1 select * from td_user_info where usr_id > 5000000 and mod(usr_id,40)=1; INSERT 0 337943 Time: 58468.442 ms lsd_base=> \copy (select * from td_user_info where usr_id > 5...
分类:其他好文   时间:2015-06-09 12:02:36    阅读次数:119
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!