表名: mysql: SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='schemaName' and TABLE_NAME = 'tablename'; oracle:select TABLE_NAME fr....
分类:
其他好文 时间:
2015-02-05 13:17:24
阅读次数:
123
--oracle查找重复记录select * from tableA a where a.rowid>=(select min(rowid) from tableA b where a.column=b.column)--oracle删除重复记录delete from tableA a where ...
分类:
数据库 时间:
2015-02-05 13:14:49
阅读次数:
128
今天一个同事突然问我索引为什么失效。说实在的,失效的原因有多种: 但是如果是同样的sql如果在之前能够使用到索引,那么现在使用不到索引,以下几种主要情况: 1. 随着表的增长,where条件出来的数据太多,大于1...
分类:
数据库 时间:
2015-02-05 11:42:50
阅读次数:
150
题目描述:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two ...
分类:
其他好文 时间:
2015-02-05 10:56:24
阅读次数:
173
总结: 关键的地方是where 语句的加入. 在11G中, 如果不加11G , 或造成除匹配的行数更新为相应的值之后, 其余的会变成负数. 所以, 测试的办法就是: 先查看需要更新的数量即连接的数量究竟有多少行, 然后update 之后多少行, 才能确定条件是否正确.引入知识比较全面的地址:htt....
分类:
数据库 时间:
2015-02-05 10:49:54
阅读次数:
211
题目:
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where ...
分类:
编程语言 时间:
2015-02-05 09:41:47
阅读次数:
206
1 // Playground - noun: a place where people can play 2 3 import UIKit 4 5 6 //使用关键字class和struct来分别表示类和结构体 7 8 struct SomeStruct { 9 ...
分类:
编程语言 时间:
2015-02-05 00:44:23
阅读次数:
241
// Playground - noun: a place where people can playimport UIKit//=================================================================//函数//// func 函数名...
分类:
编程语言 时间:
2015-02-05 00:36:13
阅读次数:
235
1 // Playground - noun: a place where people can play 2 3 import UIKit 4 5 var str = "Hello, World!" 6 7 //1 定义变量常量/常量 8 // define const ...
分类:
编程语言 时间:
2015-02-05 00:34:52
阅读次数:
282
题目链接:Search Insert Position
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 order.
You may assume ...
分类:
其他好文 时间:
2015-02-04 23:21:55
阅读次数:
148