系统工程师
·如何根据 table name 得到 table的partition number
字数 450阅读 1237评论 0赞 0
如何根据 table name 得到 table的partition number?
使用如下语句:
database sysmaster;
select *, hex(partnum) hex_partnum from systabnames
where dbsname = <mydatabase> and tabname = <mytablename>;
例如:
database sysmaster;
select *, hex(partnum) hex_partnum from systabnames
where dbsname = 'mydb' and tabname = 'hd_table';
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论0 条评论