创建db2临时表 详解
来源:互联网 发布:淘宝买家总是退货 编辑:程序博客网 时间:2024/04/30 00:38
第一步:先创建临时表空间:
create user temporary tablespace test
pagesize 4 k managed by system
using ('[curdir]\temp');
第二步:创建临时表:
declare global temporary table t1
like student
on commit preserve rows not logged in test;
如果不加上 on commit preserve rows 当insert临时表提交之后临时表里的数据会自动删除掉
第三步:插入数据
insert into session.t1
select * from student
第四步:查询数据
select * from session.t1 where 学号 = 081103;
第五步:创建索引,提高速度
create index session.t1index on session.t1(学号);
参考文章http://gong-10140.iteye.com/blog/1593660
- 创建db2临时表 详解
- DB2-创建临时表
- DB2临时表的创建
- DB2创建临时表时的错误
- DB2 临时表
- DB2 临时表
- DB2 临时表
- 创建和使用临时表详解
- db2 系统临时表空间
- ORACLE、DB2临时表简介
- Oracle两种临时表的创建与使用详解
- Oracle两种临时表的创建与使用详解
- Oracle两种临时表的创建与使用详解
- Oracle两种临时表的创建与使用详解
- DB2 已声明的全局临时表
- 使用DB2数据库临时表的注意事项
- DB2临时表在SQL过程
- IBM DB2 SQL 临时表的使用
- NSLog使用小记
- C函数调用过程
- 【个人日记】小菜近期计划(8.11-8.20)
- SQL SERVER 2005 没有LDF文件恢复数据库
- NSInvocation简单使用
- 创建db2临时表 详解
- 你们太聪明了怎么办?关于编程语言之争的一个自创笑话。
- C#中串口通信编程[转载]
- 用Response向客户端发送文件(ASP.NET)
- 读代码细学内核中断机制-中断的响应
- linux防火墙
- K-D tree 数据结构
- Android 断点续传下载
- 获取UNIX主机当前时间的函数