Problem Description
In this problem, you are given a string s and q queries.
For each query, you should answer that when all distinct substrings of string s were sorted lexicographically, which ...
分类:
其他好文 时间:
2014-10-03 16:56:54
阅读次数:
249
select * from personselect distinct name from personselect * from person where name='huangcongcong'select * from person where year>1991select * from p...
分类:
数据库 时间:
2014-10-02 20:22:53
阅读次数:
268
Chapter 17 Autorotation, Popover Controller, and Modal View Controllers1.There are two distinct orientations in iOS: device orientation and interface ...
分类:
其他好文 时间:
2014-10-02 17:50:23
阅读次数:
161
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be non...
分类:
其他好文 时间:
2014-10-02 16:03:39
阅读次数:
188
转自:http://www.51testing.com/html/01/n-867201-2.html【问题现象】 线上mysql数据库爆出一个慢查询,DBA观察发现,查询时服务器IO飙升,IO占用率达到100%, 执行时间长达7s左右。 SQL语句如下: SELECT DISTINCT g...
分类:
数据库 时间:
2014-10-02 11:24:52
阅读次数:
298
SQL查询语句关键字方法distinct关键字显示没有重复记录的商品名称,商品价格和商品类别列表。selectdistinctware_name,pricefromt_ware;使用计算列查询所有商品价格提高20%后的价格。selectware_id,ware_name,price*1.2fromt_ware;列的别名a)不使用asselectware_id,ware_name,p..
分类:
数据库 时间:
2014-09-30 04:05:12
阅读次数:
251
有这样一个题,用一条SQL语句 查询出每门课都大于80分的学生姓名。下面是表分析,查询每门课程都大于80的学生。SELECT DISTINCT name FROM dbo.student WHEREfenshu<=80查询出来的结果是李四王五张三都有。小于等于80的语句SELECT name FRO...
分类:
数据库 时间:
2014-09-29 22:30:31
阅读次数:
285
Two distinct techniques are used in data communications to transfer data. Each has its own advantages and disadvantages. They are the connection-oriented method and the connectionless method: Conne...
分类:
其他好文 时间:
2014-09-29 05:24:36
阅读次数:
532
题目:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
很简单的思路,因为一次可以走1~2步,所以...
分类:
其他好文 时间:
2014-09-29 00:34:46
阅读次数:
272
众所周知,distinct可以列出不重复的记录,对于单个字段来说distinct使用比较简单,但是对于多个字段来说,distinct使用起来会使人发狂。而且貌似也没有见到微软对distinct使用多字段的任何说明。下面就提供了一种方法可以在使用distinct的时候同时使用多个字段。select 要...
分类:
其他好文 时间:
2014-09-27 13:38:59
阅读次数:
187