当前位置:网站首页>PG library to view the distribution keys of a table in a certain mode
PG library to view the distribution keys of a table in a certain mode
2022-04-23 13:41:00 【Wangcai 2】
SELECT
aaa.nspname AS " Schema name ",
aaa.relname AS " Table name ",
ccc.attname AS " Distribution keys "
FROM (
SELECT
aa.oid,
aa.relname,
bb.pcattnum,
dd.nspname
FROM pg_class aa
LEFT JOIN pgxc_class bb ON aa.oid = bb.pcrelid
LEFT JOIN pg_namespace dd ON aa.relnamespace = dd.oid
) aaa
LEFT JOIN pg_attribute ccc ON ccc.attrelid = aaa.oid AND ccc.attnum = aaa.pcattnum
WHERE ccc.attnum > 0
AND aaa.nspname = ' Schema name '
and aaa.relname = ' Table name '
ORDER BY aaa.relname
版权声明
本文为[Wangcai 2]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230604300200.html
边栏推荐
- 2021年6月程序员工资统计,平均15052元,你拖后腿了吗?
- sys. dbms_ scheduler. create_ Job creates scheduled tasks (more powerful and rich functions)
- 叮~ 你的奖学金已到账!C认证企业奖学金名单出炉
- Lpddr4 notes
- 切线空间(tangent space)
- Logstash数据处理服务的输入插件Input常见类型以及基本使用
- Oracle database combines the query result sets of multiple columns into one row
- "Xiangjian" Technology Salon | programmer & CSDN's advanced road
- 解决tp6下载报错Could not find package topthink/think with stability stable.
- Test on the time required for Oracle to delete data with delete
猜你喜欢

面试官给我挖坑:URI中的 “//” 有什么用?
![[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation](/img/c0/cc29ae6948dbe42954cd9da326ef77.png)
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation

Zero copy technology

榜样专访 | 孙光浩:高校俱乐部伴我成长并创业

Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
![[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling](/img/da/02d1e18400414e045ce469425db644.png)
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling

Isparta is a tool that generates webp, GIF and apng from PNG and supports the transformation of webp, GIF and apng

@Excellent you! CSDN College Club President Recruitment!

联想拯救者Y9000X 2020

SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置
随机推荐
Resolution: argument 'radius' is required to be an integer
According to the salary statistics of programmers in June 2021, the average salary is 15052 yuan. Are you holding back?
Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
CSDN高校俱乐部“名师高校行”——湖南师范大学站
Solution: you have 18 unapplied migration (s) Your project may not work properly until you apply
AI21 Labs | Standing on the Shoulders of Giant Frozen Language Models(站在巨大的冷冻语言模型的肩膀上)
爱可可AI前沿推介 (4.23)
Database transactions
Antd design form verification
Common analog keys of ADB shell: keycode
Solve the problem that Oracle needs to set IP every time in the virtual machine
Software test system integration project management engineer full truth simulation question (including answer and analysis)
Publish custom plug-ins to local server
Plato farm, a top-level metauniverse game, has made frequent positive moves recently
Opening: identification of double pointer instrument panel
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
Operations related to Oracle partition
“湘见”技术沙龙 | 程序员&CSDN的进阶之路
CSDN College Club "famous teacher college trip" -- Hunan Normal University Station
零拷贝技术