取某个表的索引明细
2015-11-18 11:32
267 查看
select a.relname as indexname,b.attname as colname from pg_class as a, (select attname,attrelid from pg_attribute where attrelid in (select oid from pg_class where relname in (SELECT c.relname AS index_name FROM (SELECT relname,indexrelid FROM pg_index i, pg_class c WHERE c.relname = 'sku_attributes' AND indrelid = c.oid) t, pg_index i,pg_class c WHERE t.indexrelid = i.indexrelid AND i.indexrelid = c.oid))) as b where a.oid=b.attrelid group by indexname,colname;
相关文章推荐
- Spark standlone driver on cluster 用户权限问题
- IOS开发指南读书笔记1(Xcode的基本使用)
- 业界良心机构解密:90后更适合学网络营销的六大理由!
- Linux进程间通信--信号,管道,消息队列,信号量,共享内存,socket
- 使用FastClick的同时造成元素上的trigger('click')无法触发的解决办法
- MySQL入门完全指南及Linux系统下基本的安装教程
- 继续java基础刷题
- service php-fpm restart
- SSH:Spring框架(spring之AOP)
- Android NDK编程,引入第三方.so库
- 二叉线索树(Threaded binary tree)
- IOS滤镜处理
- ARM Linux 的timezoneinfo 数据库的移植
- 入侵网站时的十种小经验
- 【开源】.net 分布式架构之任务调度平台
- PRD产品需求文档
- 下拉选择框 Spinner的用法。
- hdu 5500 Reorder the Books
- [ay原创作品]用wpf写了个模仿36Kr网站登录背景的效果-【鄙视博客园,已被移出首页,代码在我自己官网上,自己下载学习吧】
- 《从零开始学Swift》学习笔记(Day 37)——默认构造函数