Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1752677
  • 博文数量: 335
  • 博客积分: 4690
  • 博客等级: 上校
  • 技术积分: 4341
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-08 21:38
个人简介

无聊之人--除了技术,还是技术,你懂得

文章分类

全部博文(335)

文章存档

2016年(29)

2015年(18)

2014年(7)

2013年(86)

2012年(90)

2011年(105)

分类: DB2/Informix

2012-03-19 22:54:14

db2 transforms each SQL  statement,that is specification of a result table,into a sequence of operations that optimize data retrieval.This transformation occurs when the SQL statement is preparedl.this transformation is also known as binding.

 All executable sql statement must be prepared before they can run.The resutl of preparation is the  executable or operational form of the statement.
DB2  data structures:
tables;
table space;
indexes;
index space;
key;
views
databases

An index is an ordered set of pointers to rows of a tables.Each index is
physically stored in its own inde space.
A key is a column or  an ordered collection of columns that is identified
in the description of a table,an index,or a referential constraint.
  unique key  /primary key
 foreign key /parent key
A view is a named specification of a result table.
The objects in a relational DB are organized into sets called schemas.
A schema is a collection of named objects. The first part of a schema
is the qualifier.
A schema povides a logical classfication of objects in the DB.The objects
that a schema can contain include tables,indexes,table spaces,distinct types,functions,sp,and triggers.
An object is assigned to a schema when it is created
when a table .....,it is given a qualified two-part name.
the first name is the schema name(of the qualier),which is immplictly or 
explictly specified.
the default schema is the authorization ID of the owner  of the plan or package.
the second part is the object.
CURRENT SCHEMA AND CURRENT SQLID affect only dynamic sql statement.
static create statement are not affected by either current schema or current sqlid





阅读(1014) | 评论(0) | 转发(0) |
0

上一篇:c15------------copy

下一篇:rexx ---摘要

给主人留下些什么吧!~~