由于ORACLE设置主键是不会自动增加的,所以必须用 序列 和 触发器 来完成主键的递增 1、建立数据表 create table Test_Increase( userid number(10) primary key, /*建立主键*/ username varchar2(20) ); 2、创建...
分类:
数据库 时间:
2014-09-13 10:35:14
阅读次数:
266
That Nice Euler Circuit
Timelimit:3.000 seconds
Little Joey invented a scrabble machine that he called Euler, after the great mathematician. In his primary school Joey heard about the nice s...
分类:
其他好文 时间:
2014-09-12 19:13:34
阅读次数:
277
xtype 代表类型C = CHECK 约束D = 默认值或 DEFAULT 约束F = FOREIGN KEY 约束L = 日志FN = 标量函数IF = 内嵌表函数P = 存储过程PK = PRIMARY KEY 约束(类型是 K)RF = 复制筛选存储过程S = 系统表TF = 表函数TR =...
分类:
数据库 时间:
2014-09-12 09:59:33
阅读次数:
190
SRC=Microprocessor Based Systems SRC=Computer Architecture: A Quantitative Approach
分类:
其他好文 时间:
2014-09-11 23:48:52
阅读次数:
279
改变内存空间的方法,主要就是set_fs(),get_ds()这两个函数来完成内存空间切换。一般定义的宏如下: #define BEGIN_KMEM {mm_segment_t old = get_fs();set_fs(get_ds())} #define END_KMEM {se...
分类:
其他好文 时间:
2014-09-11 22:06:42
阅读次数:
213
准备工作:create table tx( id int primary key, c1 char(2), c2 char(2), c3 int ); insert into tx values(1 ,'A1','B1',9), (2 ,'A2','B1',7), (3 ,'A3','B1',...
分类:
数据库 时间:
2014-09-11 18:43:12
阅读次数:
315
CREATE TABLE Tables( [SID] [numeric](12, 0) IDENTITY(1,1) NOT NULL, [UpdateTime] [datetime] NOT NULL, CONSTRAINT [PK_Tables] PRIMARY KEY (SID ...
分类:
数据库 时间:
2014-09-11 17:02:32
阅读次数:
206
A very hard Aoshu problem
Problem Description
Aoshu is very popular among primary school students. It is mathematics, but much harder than ordinary mathematics for primary school students. T...
分类:
其他好文 时间:
2014-09-11 15:23:22
阅读次数:
150
使用job模拟定时从元数据表中抽取指定数据进入目标表的过程。一、创建元数据表 --create table test_origianl create table test_original_data( id number(10,2) primary key, ...
分类:
数据库 时间:
2014-09-11 10:50:44
阅读次数:
281
MySQL支持limit和offset的语法。本文主要用于备忘 闲话少叙,我们建立一张实验用的表: mysql> create table limit_offset( -> id int auto_increment primary key, -> name varchar(20) -> );
Qu...
分类:
数据库 时间:
2014-09-10 15:34:50
阅读次数:
419