一、mysqldistinct技术点1,创建table:createtablet1(idvarchar,namevarchar);2,插入数据:insertintot1values(1,a);insertintot1values(2,b);insertintot1values(3,c);insertintot1values(4,c);insertintot1values(5,b);3,查询不重复name:selectdistinctnamefromt1,得到a..
分类:
数据库 时间:
2014-10-22 16:05:58
阅读次数:
258
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2014-10-22 14:32:39
阅读次数:
131
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2014-10-22 14:19:54
阅读次数:
123
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2014-10-22 14:10:45
阅读次数:
154
1 create table chengji ( 2 name varchar(10), 3 kecheng varchar(10), 4 fenshu int 5 ); 6 insert into chengji values('张三', '语文', 81); 7 insert into che....
分类:
其他好文 时间:
2014-10-21 23:01:15
阅读次数:
258
给定一个二叉树,以集合方式返回其中序/先序方式遍历的所有元素。有两种方法,一种是经典的中序/先序方式的经典递归方式,另一种可以结合栈来实现非递归Given a binary tree, return theinordertraversal of its nodes' values.For examp...
分类:
其他好文 时间:
2014-10-21 22:49:08
阅读次数:
269
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-10-21 22:48:09
阅读次数:
266
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and ...
分类:
其他好文 时间:
2014-10-21 21:02:56
阅读次数:
259
/***获取目录下所有文件**@paramdir*目录*@return*@throwsException*/publicString[]listNames(Stringdir)throwsException{FTPClientclient=null;try{client=getClient();client.changeDirectory(dir);String[]values=client.listNames();if(values!=null){//将文件排序(忽略大..
分类:
其他好文 时间:
2014-10-21 19:55:04
阅读次数:
291
1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.IO; 5 using System.Text; 6 7 namespace CsvFile...