`
hojor
  • 浏览: 106311 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
序列(SEQUENCE)是序列号生成器,可以为表中的行自动生成序列号,产生一组等间隔的数值(类型为数字)。其主要的用途是生成表的主键值,可以在插入语句中引用,也可以通过查询检查当前值,或使序列增至下一个值。创建序列需 ...
Oracle9i引入了MERGE命令,你能够在一个SQL语句中对一个表同时执行inserts和upda tes操作. MERGE命令从一个或多个数据源中选择行来updati ng或inserting到一个或多个表.在Oracle 10g中MERGE有如下一些改进:   1、UPDATE或INSERT子句是可选的   2、UPDATE和INSERT子句可以加WHERE子句   3、在ON条件中使用常量过滤谓词来insert所有的行到目标表中,不需要连接源表和目标表   4、UPDATE子句后面可以跟DELETE子句来去除一些不需要的行   首先创建示例表:   ...
oracle over函数 详解(转) SQL> select deptno,ename,sal 2 from emp 3 order by deptno; DEPTNO ENAME SAL ---------- ---------- ---------- 10 CLARK 2450 KING 5000 MILLER 1300 20 SMITH 800 ADAMS ...
-------------------- --| 字符函数 | -------------------- --字符串连接 asssbsss Select concat('asss','bsss') from dual; select 'a'||'b' from dual; --单词首字母大写 Red Hat select initcap('red hat') from dual; --字符串截取 结果为 def Select substr('abcdef',length('abcdef')-2) from dual; Select substr('abcdef ...
1.http://download.chinaunix.net    china unix webset many os or gzip can be download! 2.http://www.filewatcher.com :    File search engine which features FTP search. Monitors more than half a billion files worldwide.           some other: 1、http://scholar.google.com/ 虽然还 ...
/*===========*\ | binheap.h | \*===========*/ #ifndef _BINHEAP_H_ #define _BINHEAP_H_ #define ElementType int #define MinPQSize 2 #define MinData -10000 typedef struct HeapStruct { int Capacity; int Size; ElementType * Elements; } * PriorityQueue; //function list PriorityQu ...
/*====================*\ | BTree.h | \*====================*/ #ifndef _BTREE_H_ #define _BTREE_H_ #define NUM 3 #define KeyType int #define Status int typedef struct BTNode { int keynum; struct BTNode * parent; KeyType key[NUM+1]; struct BTNode * ptr[NUM+1]; }BTNode,* ...
avl树是其每个节点的左子树和右子树的高度最多差1的二叉查找树。当在一棵avl树中插入节点的时候,很可能把avl树的平衡给破坏掉,在不平衡的情况下,可以通过对树做单次旋转或者复杂些的双旋转来处理。具体的旋转方法Google去 O(∩_∩)O,这里就不做详细介绍啦。下面仅给已实现的avl树的代码。 /*====================*\ | AvlTree.h | \*====================*/ #ifndef _AVL_TREE_H_ #define _AVL_TREE_H_ #define ElementType int #de ...
/////////////////////////////// tree.h ///////////////////////////////// #ifndef _TREE_H_ #define _TREE_H_ #define ElementType int struct TreeNode; typedef struct TreeNode * Position; typedef struct TreeNode * SearchTree; SearchTree MakeEmpty(SearchTree t); Position Find(ElementType x,Se ...
栈及中缀表达式转后缀表达式的实现看之前的日志     //>>>>>>mocro.h #ifndef _MACRO_H_ #define _MACRO_H_ #define EmptyTOS (-1) #define MinStackSize (5) #define ElementType int #endif //>>>>>>struct.h #ifndef _STRUCT_H_ #define _STRUCT_H_ #include "macro.h" ...
/* Name:infixSuffixConv.c Copyright: personal Author: hojor Date: 10-06-10 21:24 Description: infix convert to suffix */ #include<stdio.h> #include<stdlib.h> #define STACK_SIZE 20 ////~stack start //stack struct typedef struct stack{ int top; ...
/* Name: stack.c Copyright: personal Author: hojor Date: 07-06-10 10:22 Description: stack */ #include <stdio.h> #include <stdlib.h> #include "stack.h" #define EmptyTOS (-1) #define MinStackSize (5) #define ElementType int struct StackRecord { ...
用动态规划实现的最长公共子序列   #include<stdio.h> #include<stdlib.h> /*==============*\ |最长公共子序列 \*==============*/ /*!<打印最长公共子序列*/ void printLCS(char ** a,int m,int n,const char *s1, const char *s2) { int i,j; if( m==1||n==1 ) { if( a[m][n] == 1 ) ...
/*********************\ * 基数排序(桶排序)* \*********************/ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> //struct of node typedef struct node{ int num; struct node * next; }NODE; /*!<链表尾部添加节点*/ void add ...
自己写的一个螺旋矩阵的算法,感觉好笨,呵呵,还没想出好办法来,感觉肯定有个很简洁的算法来实现。     #include<stdio.h> #include<stdlib.h> void SpiralMatrix(int start,int n) { int sm[n][n],i,j; i=j=0; memset(sm,0,sizeof(sm)); int m = n -1 ; for(i=0;i<(n+1)/2;i++) { for ...
Global site tag (gtag.js) - Google Analytics