1. 复制表结构及其数据: create table table_name_new as select * from table_name_old 2. 只复制表结构: create table table_name_new as select * from table_name_old where...
分类:
数据库 时间:
2015-02-06 11:09:51
阅读次数:
151
查找所有重复标题的记录:SELECT*FROMt_infoaWHERE((SELECTCOUNT(*)FROMt_infoWHERETitle=a.Title)>1)ORDERBYTitleDESC一。查找重复记录1。查找全部重复记录Select*From表Where重复字段In(Select重复字...
分类:
数据库 时间:
2015-02-06 11:08:53
阅读次数:
157
select distinc user from instrument where created>"TO_DATE"('2015-02-05 12:00:00', 'yyyy-mm-dd hh24:mi:ss')———————————————————————————————————————————...
分类:
数据库 时间:
2015-02-06 11:05:28
阅读次数:
294
题目链接:Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
Note:
A...
分类:
其他好文 时间:
2015-02-06 00:50:56
阅读次数:
189
背景:做了这么久的题,唯一一道一次ac的,可见这道题是如何的简单。
思路:思路很清楚的模拟题,先排序再查找。
学习:sort函数和lower_bound函数,sort函数排序就不多说了,lower_bound函数作用是查找一个数组中大于等于x的第一个位置。#include
#include
#include
using namespace std;
int figue[10000];
v...
分类:
其他好文 时间:
2015-02-05 23:25:29
阅读次数:
176
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2015-02-05 23:08:03
阅读次数:
189
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-05 21:41:14
阅读次数:
160
;with Tree as ( ?select wjgl_20_col_10 as ID, wjgl_20_col_30 as Name,wjgl_20_col_60 as Parent from wjgl_20 ?where WJGL_20_COL_50=1 and (WJGL_20_COL_70 is null or WJGL_20_COL_70=1) and WJGL_20_COL...
分类:
其他好文 时间:
2015-02-05 20:35:04
阅读次数:
270
题目:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?分析:首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。当f...
分类:
其他好文 时间:
2015-02-05 20:29:16
阅读次数:
180
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to
...
分类:
其他好文 时间:
2015-02-05 16:27:38
阅读次数:
142