不知为啥,当我得查询中出现distinct时,order by 中必须包含要查询的列,否则报错。SELECT DISTINCT a.DetailId, a.OrderId, a.ProductId, pi2.BarCode, pi1.ProductName, pi...
分类:
其他好文 时间:
2014-11-17 15:46:12
阅读次数:
177
题目描述:
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ ...
分类:
其他好文 时间:
2014-11-17 12:26:22
阅读次数:
171
1.#将传入的数据都当成一个字符串,会对自动传入的数据加一个双引号。如:order by#user_id#,如果传入的值是111,那么解析成sql时的值为order by "111", 如果传入的值是id,则解析成的sql为order by "id". 2.$将传入的数据直接显示生成在sql中。如....
分类:
其他好文 时间:
2014-11-17 12:20:31
阅读次数:
122
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix:[ [ 1,...
分类:
其他好文 时间:
2014-11-17 06:54:06
阅读次数:
190
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3,You should return the followin...
分类:
其他好文 时间:
2014-11-17 06:53:48
阅读次数:
152
The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence ...
分类:
其他好文 时间:
2014-11-17 06:53:34
阅读次数:
214
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:
其他好文 时间:
2014-11-16 22:52:55
阅读次数:
244
Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al...
分类:
其他好文 时间:
2014-11-16 18:36:32
阅读次数:
232
【SQL】 常用语句之系统语法1. 获取取数据库服务器上所有数据库的名字SELECT name FROM master.dbo.sysdatabases2. 获取取数据库服务器上所有非系统数据库的名字SELECT [name] FROM master.dbo.sysdatabases ORDER B...
分类:
数据库 时间:
2014-11-16 17:11:24
阅读次数:
219
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-11-16 15:52:15
阅读次数:
226