不断递归的实现!!!!下面是AC代码: 1 /** 2 * Given inorder and
postorder traversal of a tree, construct the binary tree. 3 * @param inorder 4 *
@param...
分类:
其他好文 时间:
2014-05-10 08:40:40
阅读次数:
297
针对oracle数据查询的数据,行转列1.wm_concat函数:例一:select
c1,c2,wm_concat(c3) from T where.... group by c1,c2查询结果自动用“,”分割例二:select
c1,c2,wm_concat(c3)over(partition ...
分类:
数据库 时间:
2014-05-10 02:10:46
阅读次数:
430
1、查询表的所有列及其属性select t.*,c.COMMENTS from
user_tab_columns t,user_col_comments c where t.table_name = c.table_name and
t.column_name = c.column_name and...
分类:
数据库 时间:
2014-05-10 01:37:51
阅读次数:
422
前几天在博客园上看到一道SQL面试题,sc是表名。老师拿来与同学分享,让大家试做,要求是:查出每科成绩都>=80分的名字,看能写出几种方法。没有主外键,没有关联,脑袋一下子就蒙了。经老师讲解指导的两种方式:第一种:select
name from sc group by name having MI...
分类:
数据库 时间:
2014-05-09 17:48:25
阅读次数:
314
oracle的安装步骤:1.下载所需的软件#在oracle官网下载最新的版本,本次下载的是oracle11g,下载时需确认下载的是linux上的安装包还是windows上的安装包,同时也要确认下载的是32位的还是64位的。
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/in..
分类:
数据库 时间:
2014-05-05 12:35:37
阅读次数:
610
数据库分页技术能够帮助浏览者更好的查看信息,不同数据库实现分页时的方法也各有不同。本文主要介绍几种不同数据库分页显示的实现方法以及高效率分页技术的三个方案。不同数据库分页技术的实现代码:1.Oracle:select
* from ( select query.*, rownum rn from (...
分类:
数据库 时间:
2014-05-05 09:55:47
阅读次数:
420
Unable to open shim database version registry
key
分类:
Web程序 时间:
2014-05-05 09:50:00
阅读次数:
338
After a long and successful day of preparing food for the banquet, it is time to clean up. There is a list of n jobs to do before the kitchen can be closed for the night. These jobs are indexed from 1...
分类:
其他好文 时间:
2014-05-04 18:25:07
阅读次数:
384
There are K nuclear reactor chambers labelled from 0 to K-1. Particles are bombarded onto chamber 0. The particles keep collecting in the chamber 0. However if at any time, there are more than N parti...
分类:
其他好文 时间:
2014-05-04 18:00:17
阅读次数:
372
查看一个数据库的所有表:SelectTABLE_NAMEFROM数据库名称.INFORMATION_SCHEMA.TABLESWhereTABLE_TYPE=‘BASETABLE‘(select*from表名where条件)查看一张表的表结构:sp_helptable_name(表名)获取的信息比较全sp_columnstable_name(表名)创建数据库:usemastergocreatedatabase..
分类:
数据库 时间:
2014-05-04 17:27:23
阅读次数:
456