mysql连接查询与子查询1.子查询是指在另一个查询语句中的SELECT子句。例句: SELECT * FROM t1 WHERE column1 = (SELECT column1 FROM t2);其中,SELECT * FROM t1 ...称为Outer Query[外查询](或者Outer Statement),SELECT column1 FROM t2 称为Sub Query[子查询...
分类:
数据库 时间:
2016-07-13 17:27:47
阅读次数:
306
--1.删除临时表
drop table biz_bus_station_direct_0711;
--2.将站点数据等放入临时表
create table biz_bus_station_direct_0711 as
select ls.line_no line_no,
bb.line_name line_name,
t1.line_direct line_direct...
分类:
数据库 时间:
2016-07-13 16:38:59
阅读次数:
772
noi2015 Day1 t1 程序自动分析 离散化+并查集 t2 软件包管理器 裸树链剖分 t3 寿司晚宴 状压dp Day2 t1 荷马史诗 哈夫曼多叉树 t2 品酒大会 后缀数组按照height排序+并查集 t3 小园丁与老司机 noi2014 Day1 t1 起床困难综合症 按位dp,贪心 ...
分类:
其他好文 时间:
2016-07-13 01:29:59
阅读次数:
197
日期类型:datetime年月日小时分秒格式必须是‘yyyy-MM-ddhh:mm:ss’时间戳类型:什么是时间戳,就是一个日期中,如果具备了年、月、日、小时、分、秒,就是时间戳。把t1表的类型改为timestamp取值范围:19701100:00:00但是我们在东8区,所以我们测试时,要添加的最小的时间是”..
分类:
数据库 时间:
2016-07-11 19:29:29
阅读次数:
269
题目描述 Description 天凯是MIT的新生。Prof. HandsomeG给了他一个长度为n的由小写字母构成的字符串,要求他把该字符串的n个后缀(suffix)从小到大排序。 何谓后缀?假设字符串是S=S1S2……Sn,定义Ti=SiSi+1……Sn。T1, T2, …, Tn就叫做S的n ...
分类:
编程语言 时间:
2016-07-10 12:38:30
阅读次数:
186
4510 神奇的幻方 noip2015day1 T1 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 查看运行结果 4510 神奇的幻方 noip2015day1 T1 4510 神奇的幻方 noip2015day1 T1 时间限制: 1 s 空间限制: 12 ...
分类:
其他好文 时间:
2016-07-09 17:54:58
阅读次数:
195
Write a file t1.js 运行 node t1.js 在浏览器输入 http://localhost:8080/ ...
分类:
Web程序 时间:
2016-07-09 13:34:10
阅读次数:
177
You have two every large binary trees: T1, with millions of nodes, and T2, with hundreds of nodes. Create an algorithm to decide if T2 is a subtree of ...
分类:
其他好文 时间:
2016-07-09 13:29:34
阅读次数:
143
map/multimap里放着的都是pair模板类的对象,且按first从小到大排序。 pair 模板: template <class _T1, class _T2> struct pair { typedef _T1 first_type; typedef _T2 second_type; _T ...
分类:
其他好文 时间:
2016-07-09 11:55:21
阅读次数:
204
思路:考试的时候打了LCT,自以为能过,没想到只能过80.. 考完一想:lct的做法点数是100W,就算是nlogn也会T。 讲一下lct的做法把:首先如果一条边连接的两个点都在同一个联通块内,那么这条边对答案没有影响,可以忽略,因此,问题变成了每次询问两个点中路径上权值最大的边(这里的权值我们令它 ...
分类:
其他好文 时间:
2016-07-08 21:39:34
阅读次数:
158