Chinaunix

标题: rowid问题请教 [打印本页]

作者: 邓蒂斯    时间: 2006-09-15 09:26
标题: rowid问题请教
近日我的数据库里的一张表用dbexport备份时,由于文本大小超过2G,因此只能切割文本,因此打算用
unload to 1.txt
select * from table where mod(rowid,2)=0;
unload to 2.txt
select * from table where mod(rowid,2)=1;
的方式切割成两个文本。但是在我重建这张表倒入数据后发现表里的数据rowid都是单数,太奇怪了,哪位大虾能帮忙解释下原因?谢谢!!!
作者: wenlq    时间: 2006-09-15 12:52
0x0508C104
0x0508C905
0x0508DF05
0x05091B02
0x05096002
看了个表 有单 有双
0x05097603
0x05097905
0x05099901
0x05099A05
0x050A3202
0x050A3801
0x050AB104
0x050AF103
0x050B0F01
作者: IFMXDBA    时间: 2006-09-15 20:58
标题: 回复 1楼 邓蒂斯 的帖子
Rowid a 4 byte integer :-
  0XPPPPPPSS
PPPPPP  : logical page number  of  that table ( offset  of  its table space )
SS:  slot number ( the number of slot, within that page ) index
       slot entry, 2 bytes each, indicates the actually data offset of that page.

SS [0 ~ FF ],
PPPPPP [ 0x000001 ~ 0xFFFFFF ]  

page 0,  table space page, describes that table itself




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2