oracle 共享服务连接静态注册服务
默认oracle的共享服务是注册到动态注册服务里面的
sys@PROD3> select * from v$version where rownum=1;
BANNER
-----------------------------------------------------------------------------------------...
分类:
数据库 时间:
2015-04-20 17:01:15
阅读次数:
288
select *from xueshengxinxi where shengao=164select *from xueshengxinxi where nianling !=23--子查询:就是使用查询语句查询一列数据出来,然作为其他查询的查询条件参数来使用--查询身高不在年龄是岁的人的身高范围之...
分类:
数据库 时间:
2015-04-20 16:43:43
阅读次数:
140
1.不要过度索引。索引越多,占用空间越大,反而性能变慢;2.只对 WHERE 子句中频繁使用的建立索引;3.尽可能使用唯一索引,重复值越少,索引效果越强;4.使用短索引,如果 char(255)太大,应该给它指定一个前缀长度,大部分情况下前10 位或 20 位值基本是唯一的,那么就不要对整个列进行索...
分类:
其他好文 时间:
2015-04-20 16:35:56
阅读次数:
97
delete WeiBoTopics where Id in(select max(Id) from WeiBoTopics group by WeiBoId,Title having COUNT(*) > 1);
分类:
数据库 时间:
2015-04-20 16:29:58
阅读次数:
121
例如:exec("wmic logicaldisk where 'drivetype=3' get name ",$dir);wmic 获取硬盘固定分区盘符:wmic logicaldisk where "drivetype=3" get namewmic 获取硬盘各分区文件系统以及可用空间:wmi...
分类:
Web程序 时间:
2015-04-20 14:38:00
阅读次数:
332
--查看对象是否已经存在 --数据库是否存在 --if exists (select * from sys.databases where name = ’数据库名’) -- drop database [数据库名] if exists(select * from sys.databases whe...
分类:
数据库 时间:
2015-04-20 14:34:50
阅读次数:
167
1、查询oracle的连接数 select count(*) from v$session;2、查询oracle的并发连接数 select count(*) from v$session where status='ACTIVE';3、查看不同用户的连接数 select username,co...
分类:
数据库 时间:
2015-04-20 12:40:34
阅读次数:
158
有时候新闻或者消息提示有几条,可以用absolute定位来实现效果。原理是什么呢?1.获取数字或者状态。function getnewscount(){ $time = date("Y-m-d",strtotime("-3 day")); $where["News.che...
分类:
其他好文 时间:
2015-04-20 12:37:05
阅读次数:
165
I dont know where to start so searched the net and get a lot of free videos, my plan is to watch them all, buy a mac mini, then sign a train school,th...
分类:
其他好文 时间:
2015-04-20 12:36:15
阅读次数:
180
Given a range [m, n] where 0
For example, given the range [5, 7], you should return 4
题意:求[m,n]之间所有数的按位与
初看之下,觉得太简单不过了,直接依次遍历
public class Solution {
public int rangeBitwiseAnd(int m,...
分类:
其他好文 时间:
2015-04-20 11:21:01
阅读次数:
585