SQL> select count(*) from v$session #连接数SQL> Select count(*) from v$session where status='ACTIVE' #并发连接数SQL> show parameter processes #最大连接 process:.....
分类:
数据库 时间:
2014-06-18 20:28:17
阅读次数:
289
emdx文件解读:ssdl描述有什么表csdl描述有什么实体edmx:Mapping 映射关系 用EF实现简单的查询操作://Linq:【link】select * from UserInfo where Id();foreach (var u in dbContext.UserInfo){ if....
分类:
其他好文 时间:
2014-06-18 17:53:45
阅读次数:
293
查询及删除重复记录的SQL语句1、查找表中多余的重复记录,重复记录是根据单个字段(Id)来判断select * from 表 where Id in (select Id from 表 group by Id having count(Id) > 1)2、删除表中多余的重复记录,重复记录是根据单个字...
分类:
数据库 时间:
2014-06-18 17:09:56
阅读次数:
241
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-18 15:58:10
阅读次数:
149
DECLARE @TABLE_NAME VARCHAR(200) SET @TABLE_NAME = 'myFunction' --表名
DECLARE @TABLE_CONDITION VARCHAR(200) SET @TABLE_CONDITION = 'where Application=''0303'' AND FunctionType=''功能''' --条件
DECL...
分类:
数据库 时间:
2014-06-16 19:38:05
阅读次数:
267
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?
思路:由【Leetcode】Linked
List Cycle可知,利用一快一慢...
分类:
其他好文 时间:
2014-06-15 14:23:38
阅读次数:
288
原文:Sql Server 查看所有存储过程或视图的位置及内容select a.name,a.[type],b.[definition] from sys.all_objects a,sys.sql_modules b where a.is_ms_shipped=0 and a.object_id ...
分类:
数据库 时间:
2014-06-14 18:37:31
阅读次数:
222
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?比...
分类:
其他好文 时间:
2014-06-14 15:48:59
阅读次数:
217
这是一个很有意思的问题,求解最大容积问题,值得动脑筋想一想。
原题如下:
Given n non-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.
For...
分类:
移动开发 时间:
2014-06-14 13:12:01
阅读次数:
268
-- 1. 查看被锁的表
SELECT p.spid, a.serial#, c.object_name, b.session_id, b.oracle_username,b.os_user_name
FROM v$process p, v$session a, v$locked_object b, all_objects c
WHERE p.addr = a.paddr
AND a.p...
分类:
数据库 时间:
2014-06-14 12:55:33
阅读次数:
256