转自:http://lorry1113.javaeye.com/blog/513851关键字: oracle 存储过程1.基本结构 CREATE OR REPLACE PROCEDURE 存储过程名字 ( 参数1 IN NUMBER, 参数2 IN NUMBER ) IS 变量1 INTEGER.....
分类:
数据库 时间:
2014-10-03 02:31:33
阅读次数:
610
sql%rowcount用于记录修改的条数,就如你在sqlplus下执行delete from之后提示已删除xx行一样,这个参数必须要在一个修改语句和commit之间放置,否则你就得不到正确的修改行数。例如:declare n number;begin insert into test_a sel....
分类:
数据库 时间:
2014-10-03 02:15:43
阅读次数:
390
题目链接:hdu 1394 Minimum Inversion Number该题是求最小逆序对的扩展。可以使用树状数组来实现。对于$n$个数的序列$A$,其第$i$个数($i\in [0,n)$)的逆序数$r_i$可以表示为它的角标$i$减去在它之前且不大于它的数的个数。例如对序列A = {1,3,...
分类:
其他好文 时间:
2014-10-03 00:28:23
阅读次数:
230
java实现package sort;public class FibonacciSearch { public static int search(int[] number, int des) { int[] fib = createFibonacci(number.leng...
分类:
其他好文 时间:
2014-10-02 18:23:43
阅读次数:
326
??
每行显示固定字符串,截取字符串
方法一:在循环里面输出
DECLARE
l_char VARCHAR2 (3000 )
:= 'ORACLEEB电子商务套件SSYSTEMghtest' ;
l_length NUMBER ;
l_line_char VARCHAR2 (1000 ); --每个字符
l_leng...
分类:
数据库 时间:
2014-10-02 16:45:23
阅读次数:
532
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be non...
分类:
其他好文 时间:
2014-10-02 16:03:39
阅读次数:
188
链接:here~~~分割最多的数,使得分割的数连接在一起,得到原来的数,(分割的数大的放前面,两个数合并 比较此数大于后面的数,否则合并成一个数,不能分割,0不能单独存在)#includeusing namespace std;int main(){ string s; int i , ...
分类:
其他好文 时间:
2014-10-02 11:42:52
阅读次数:
157
Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l...
分类:
其他好文 时间:
2014-10-02 03:56:22
阅读次数:
198
检查点函数 web_reg_find("Search=body","savecount=num", "Text=test1", LAST);
分类:
Web程序 时间:
2014-10-01 23:55:51
阅读次数:
984
Time Limit:1000MSMemory Limit:10000KTotal Submissions:11433Accepted:4551DescriptionA number of schools are connected to a computer network. Agreements...
分类:
Web程序 时间:
2014-10-01 20:20:41
阅读次数:
222