CREATE OR REPLACE PROCEDURE SINGLSCHOOL( PICIID IN VARCHAR2, SCHOOLID IN NUMBER, SCHETYPE IN number, SCHENAME OUT VARCHAR2, ISCORE OUT VARCHAR2, ISTH....
分类:
其他好文 时间:
2014-08-26 19:06:36
阅读次数:
225
Oracle分析函数 --row_number():连续不重复 1234567 --rank():跳跃可重复 12333678 --dense_rank():连续可重复 12333456 row_number()?over(partition?by?deptno?order?by?sal?desc) ? over( partitio...
分类:
数据库 时间:
2014-08-26 17:50:06
阅读次数:
323
/**
*更新数据函数
*@param用户提交的表单数据存入数组$array
*@param操作的数据表$table
*@param更新条件$where
*@return影响的数据条数number
*/
functionupdate($array,$table,$where=NULL){
foreach($arrayas$key=>$val){
$sep=($str==null)?"":",";
$str.=$sep.$k..
分类:
数据库 时间:
2014-08-26 17:39:17
阅读次数:
306
创建存储过程和触发器
1、建表
首先先建两张表(users表和number表),具体设计如下图:
2、存储过程
写一个存储过程,往users表中插入数据,创建过程如下:
代码如下:
[sql]
view plaincopy
BEGIN #Routine body goes here... declare n ...
分类:
其他好文 时间:
2014-08-26 17:32:14
阅读次数:
151
Minimum Inversion Number
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Problem Description
The inversion nu...
分类:
其他好文 时间:
2014-08-26 17:23:36
阅读次数:
283
1,配置VIM
打开vim,普通模式下输入下面的命令找到vim的位置
:echo $VIM
/usr/share/vim打开返回目录下的文件vimrc,进行配置
vim /usr/share/vim/vimrc具体配置如下:
syntax on "语法高亮
set autowrite "自动保存
set number "显示行号
set autoindent "自动缩进
set tabst...
分类:
系统相关 时间:
2014-08-26 17:22:15
阅读次数:
283
什么是bucketbucket的英文解释:Hash table lookup operations are often O(n/m) (where n is the number of objects in the table and m is the number of buckets), whi...
分类:
其他好文 时间:
2014-08-26 17:08:36
阅读次数:
308
TOP 子句TOP 子句用于规定要返回的记录的数目。对于拥有数千条记录的大型表来说,TOP 子句是非常有用的。SQL Server 的语法:SELECT TOP number|percent column_name(s)FROM table_nameSELECT TOP 1000 [id] ...
分类:
数据库 时间:
2014-08-26 17:03:16
阅读次数:
218
Alice and Bob is playing a game, and this time the game is all about the absolute value!
Alice has N different positive integers, and each number is not greater than N. Bob has a lot of blank paper, ...
分类:
其他好文 时间:
2014-08-26 15:37:46
阅读次数:
228
题解:求区间K小,函数式线段树模板题。#include #include #include using namespace std;const int N=3000005;struct node{int num,id;}a[N];int T,n,m,x,y,z,tot,b[N],head[N],so...
分类:
其他好文 时间:
2014-08-26 15:25:46
阅读次数:
195