码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
ORA-01779: 无法修改与非键值保存表对应的列
一、如果两张表有主键关系的话:执行更新UPDATE (SELECT tt1.col1 ,tt2.cola,tt1.id,tt2.id FROM tt1,tt2 WHERE tt1.ID=tt2.ID) SET col1=cola; 报错:ORA-01779: 无法修改与非键值保存表对应的列分析根.....
分类:其他好文   时间:2014-06-28 18:48:26    阅读次数:258
leetcode - Convert Sorted Array to Binary Search Tree
题目:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.个人思路:1、选...
分类:其他好文   时间:2014-06-21 06:37:00    阅读次数:183
[LeetCode] Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.说明:平衡二叉搜索树,即任何结点的左子树和右子树高度最多相差1的二叉搜索树。二叉搜索树:二叉查找树(Bin...
分类:其他好文   时间:2014-06-21 00:47:08    阅读次数:221
Leetcode: Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate...
分类:其他好文   时间:2014-06-20 23:37:29    阅读次数:195
FIND_IN_SET()
查询表字段 pingid = (1,2,3,)用正则select * from linkinfo where pingid regexp '[[::]]'用FIND_IN_SET()SELECT * FROM linkinfo WHERE FIND_IN_SET( '1', pingid )原来以为...
分类:其他好文   时间:2014-06-20 22:34:52    阅读次数:254
ORA-00054:资源正忙,要求指定NOWAIT
--ORA-00054:资源正忙,要求指定NOWAIT----以DBA角色, 查看当前数据库里锁的情况可以用如下SQL语句--SELECT sid, serial#, username, osuser FROM v$session WHERE sid IN(SELECT session_id FRO...
分类:其他好文   时间:2014-06-20 17:26:13    阅读次数:222
6 Java Exceptions that Haunts a Newbie Java Developer(Java菜鸟6种常见的异常)
Every now and then, I come across various newbies Java developers who are found to get stuck with some of the following common exceptions where I need...
分类:编程语言   时间:2014-06-20 17:19:52    阅读次数:325
锁表查询
--锁表查询SQLSELECT object_name, machine, s.sid, s.serial# FROM gv$locked_object l, dba_objects o, gv$session s WHERE l.object_id = o.object_id AND l.sess...
分类:其他好文   时间:2014-06-20 15:36:49    阅读次数:201
Leetcode Gas Station
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:其他好文   时间:2014-06-20 15:20:38    阅读次数:176
mysql 个人笔记
mysql修改最后一条记录&删除第一条记录 收藏 //修改最后一条记录UPDATE userinfo set userid='55' WHERE 1 ORDER BY userid DESC LIMIT 1//删除第一条记录delete from userinfo where 1 order by ...
分类:数据库   时间:2014-06-20 14:50:07    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!