码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
oracle 共享服务连接静态注册服务
oracle 共享服务连接静态注册服务 默认oracle的共享服务是注册到动态注册服务里面的 sys@PROD3> select * from v$version where rownum=1; BANNER -----------------------------------------------------------------------------------------...
分类:数据库   时间:2015-04-20 17:01:15    阅读次数:288
SQL查询语句练习及相关代码
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
SQL删除重复记录,并只保留一条
delete WeiBoTopics where Id in(select max(Id) from WeiBoTopics group by WeiBoId,Title having COUNT(*) > 1);
分类:数据库   时间:2015-04-20 16:29:58    阅读次数:121
php exec命令
例如: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
判断sqlserver对象是否存在
--查看对象是否已经存在 --数据库是否存在 --if exists (select * from sys.databases where name = ’数据库名’) -- drop database [数据库名] if exists(select * from sys.databases whe...
分类:数据库   时间:2015-04-20 14:34:50    阅读次数:167
查看oracle数据库的连接数以及用户
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
RESOURCE SUMMARY
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
Bitwise AND of Numbers Range
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!