码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
oracle从零开始学习笔记 二
多表查询等值连接(Equijoin)select ename,empno,sal,emp.deptno from emp,dept where dept.deptno=emp.deptno;非等值连接(Non-Equijoin)select ename ,empno,grade from emp,s...
分类:数据库   时间:2015-03-19 00:45:59    阅读次数:253
数据库的事务隔离机制
事务隔离级别:一个事务对数据库的修改与并行的另一个事务的隔离程度。 两个并发事务同时访问数据库表相同的行时,这些问题可以归结为5类: 3类数据读问题(脏读、不可重复读和幻象读) 2类数据更新问题(第一类丢失更新和第二类丢失更新)。 1、幻读:事务T1读取一条指定where条件的语句,返回结果集。此时事务T2插入一行新记录,恰好满足T1的where条件。然后T1使用相同的条件再次...
分类:数据库   时间:2015-03-18 23:21:09    阅读次数:586
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?这道...
分类:其他好文   时间:2015-03-18 23:06:39    阅读次数:122
sql查询区分大小写的写法
在不区分大小的环境中,以下查询的结果是不区分大小写的:1 SELECT empid, firstname, lastname2 FROM HR.Employees3 WHERE lastname = N'davis';如果想让过滤条件区分大小写,则可以这样写:1 SELECT empid, firs...
分类:数据库   时间:2015-03-18 20:26:29    阅读次数:176
c++ 顺序容器适配器
第一次看到stack,以为它是一个和vector同等地位的容器,其实不是官方解释:stacks are a type of container adaptor, specifically designed to a LIFO context(last-in-first-out), where ele...
分类:编程语言   时间:2015-03-18 19:47:53    阅读次数:228
myBatis,mapper查询方法参数传递出错
myBatis,mapper查询方法参数传递出错 ? 接口类mapper的方法: public string getData(String str); ? mapper.xml文件中sql语句: select * from table1 t where t.str=#{str} ? 这样可能会报错,报错内容是找不...
分类:移动开发   时间:2015-03-18 18:44:51    阅读次数:156
vb.net 正则表达式 取 固定格式的字符
vb.net 正则表达式 取 固定格式的字符:   原始字符串:strSqlTmp=”select * from A_TEST where a_data = '@1@' and b_link = @2@“ 其中@包围的是sql文的条件字段, 需要将条件字段取出,单独处理 Dim mc As MatchCollection = Regex.Matches(strSqlTmp, "@([0-...
分类:Web程序   时间:2015-03-18 18:16:06    阅读次数:158
mysql 某字段插入随机数
UPDATE`表名`SET`字段名`=ceiling(rand()*500000+500000)WHERE(条件); 写入11位手机UPDATE xm_user a SET a.user_mobile = CONCAT('15810',ceiling(rand()*500000+500000) );
分类:数据库   时间:2015-03-18 17:45:32    阅读次数:257
PHP分页优化
最快select id,name,content,time,re_id,is_replay from tb_content where re_id = 0 and id between 19993 and 19998 order by id desc大于10000条以上用select id,nam....
分类:Web程序   时间:2015-03-18 17:44:50    阅读次数:164
leetcode题解||Container With Most Water问题
problem: 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)...
分类:其他好文   时间:2015-03-18 15:53:14    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!