stephen
作者stephen·2011-04-14 16:23
系统工程师·

如何根据 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 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广