因为实验室项目好久没刷题了。从今天开始重新开始刷题。 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers...
分类:
其他好文 时间:
2014-07-16 23:04:15
阅读次数:
166
-- 错误的写法insert into t_b_partner_vehicle(id, partner_id, vehicle_id)(seq_t_b_partner_vehicle.nextval,121, (selectid from t_b_car_info where org_id in(1...
分类:
数据库 时间:
2014-07-12 08:37:46
阅读次数:
295
适用于ORACLE11G//获取用户所属的profileSELECT username,PROFILE FROM dba_users;//查看profile的密码有效期 默认是180天SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND...
分类:
数据库 时间:
2014-07-12 08:36:26
阅读次数:
248
昨天遇到了一个奇葩的问题,需要在WHERE条件里面添加正则表达式,抱着试试看的态度,查看了一下postgresql,发现确实可以支持正则,例如:select * from user where email ~ '^[A-H]' --匹配email地址以A-H开头的记录 select * from ....
分类:
数据库 时间:
2014-07-12 08:31:24
阅读次数:
319
帮助->关于会话 SID : 507DECLARE l_sid NUMBER := :SID;BEGIN FOR cur_sql IN (SELECT sql_text FROM v$sqltext_with_newlines t WHERE t.address IN (SELECT s.prev_...
分类:
数据库 时间:
2014-07-11 09:59:01
阅读次数:
334
Search Insert PositionGiven 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 ...
分类:
其他好文 时间:
2014-07-11 09:09:33
阅读次数:
211
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas
to travel from station i to ...
分类:
其他好文 时间:
2014-07-10 20:59:16
阅读次数:
239
Description
Magic Numbers
Write a program that finds and displays all pairs ofintegers and
such that:
neither nor
have any digits repeated; and , where
N is a given i...
分类:
其他好文 时间:
2014-07-10 20:10:06
阅读次数:
238
1.子查询是指在另一个查询语句中的SELECT子句。
例句:
SELECT * FROM t1 WHERE column1 = (SELECT column1 FROM t2);
其中,SELECT * FROM t1 ...称为Outer Query[外查询](或者Outer Statement),
SELECT column1 FROM t2 称为Sub Query[子查询]。...
分类:
数据库 时间:
2014-07-10 19:43:07
阅读次数:
300
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-07-10 15:00:57
阅读次数:
267