码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
C#泛型约束
//使用泛型约束,约束了T只能是值类型 class MyClass where T : struct { } //使用泛型约束,约束了T只能是引用类型 class MyClass where T : class { } //限制T必须是实现了某个接口的类型 //要求T必须是实现了IComparable接口的子类型对象或者就是该接口 class M...
分类:Windows程序   时间:2015-06-01 16:47:56    阅读次数:152
Project Euler:Problem 21 Amicable numbers
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b a...
分类:其他好文   时间:2015-06-01 16:43:34    阅读次数:126
限定查询与排序显示(章节摘要)
1,数据查询的标准语法。SELECT [DISTINCT] * | 列 [AS][别名],列[AS][别名],...FROM 表名称 [别名][WHERE 限定条件(s)][ORDER BY 排序字段 [ASC | DESC][,排序字段[ASC | DESC]...]];2,多个字句的运行顺序为F...
分类:编程语言   时间:2015-06-01 16:05:08    阅读次数:152
查询、释放数据库锁、 约束
SELECT 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.session_i...
分类:数据库   时间:2015-06-01 14:42:02    阅读次数:148
sql server:float转换成nvarchar
select convert(nvarchar(30),convert(decimal(11,0),Mobile)) mobile,studentname from yuanboguojistudent_excel WHERE mobile IS NOT NULL
分类:数据库   时间:2015-06-01 14:34:57    阅读次数:190
sql优化
加快检索速度,降低增删改速度在使用分组和排序子句进行数据检索时,可以显著减少查询中分组和排序的时间。选择性高的列上创建索引复合索引的主列应该是最有选择性的和where限定条件最常用的列。一个索引是按f1,f2,f3的次序建立的,若where子句是f2 = :var2,则因为f2不是索引的第1个字段,...
分类:数据库   时间:2015-06-01 14:34:50    阅读次数:176
创建数据库
--系统数据库master中保存了所有本地数据库的名字use mastergoif exists(select * from sysdatabases where name='student')drop database student --如果数据库存在就删除gocreate...
分类:数据库   时间:2015-06-01 14:28:21    阅读次数:151
sql server-获取重复数据的第一条
select tt1.LSH from (select t1.zblsh,t1.lsh, row_number() over(partition by t1.ZBLSH order by t1.XT_XGRQ desc) rn from grjx_zbgl_bhgzl t1 WHERE t1.nf = '2015' ) tt1 where tt1...
分类:数据库   时间:2015-06-01 13:23:04    阅读次数:243
group by后统计个数
select 字段 ,count(1) as num ,sum(price) as price from table group by 字段 where 条件
分类:其他好文   时间:2015-06-01 13:05:40    阅读次数:127
[LintCode] Subarray Sum & Subarray Sum II
Subarray SumGiven an integer array, find a subarray where the sum of numbers iszero. Your code should return the index of the first number and the ind...
分类:其他好文   时间:2015-06-01 13:00:46    阅读次数:92
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!