免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1964 | 回复: 2
打印 上一主题 下一主题

rowid问题请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-15 09:26 |只看该作者 |倒序浏览
近日我的数据库里的一张表用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都是单数,太奇怪了,哪位大虾能帮忙解释下原因?谢谢!!!

论坛徽章:
0
2 [报告]
发表于 2006-09-15 12:52 |只看该作者
0x0508C104
0x0508C905
0x0508DF05
0x05091B02
0x05096002
看了个表 有单 有双
0x05097603
0x05097905
0x05099901
0x05099A05
0x050A3202
0x050A3801
0x050AB104
0x050AF103
0x050B0F01

论坛徽章:
0
3 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP