Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to show index type in postgresql

SELECT tab.relname, cls.relname, am.amname
FROM pg_index idx 
JOIN pg_class cls ON cls.oid=idx.indexrelid
JOIN pg_class tab ON tab.oid=idx.indrelid
JOIN pg_am am ON am.oid=cls.relam;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql select where more than one record exists 
Sql :: create index mysql cli 
Sql :: CALCULATING MONTHS BETWEEN TWO DATES IN POSTGRESQL 
Sql :: oracle pagination query rownum 
Sql :: sql percentage with % rounded down 
Sql :: mysql store ip address 
Sql :: describe in sqlite3 
Sql :: mysql count number of occurrences in a column 
Sql :: set open file limit mac catalina mysql 
Sql :: mysql isnull 
Sql :: split string from comma in sql 
Sql :: mysql record group by created date count 
Sql :: sql change a colum to unique 
Sql :: postgres create column with default value 
Sql :: kill session inactive oracle 
Sql :: rename a table in sql server 
Sql :: get records in sql according to month name and count 
Sql :: drop all tables in azure sql database 
Sql :: mysql select date range last 30 days 
Sql :: mysql get last inserted id 
Sql :: how to lock table in mysql 
Sql :: mysqldump with where clause 
Sql :: mysql stored procedure vs function 
Sql :: select distinct after join 
Sql :: enter mysql command line 
Sql :: select distinct postgres 
Sql :: how to select an index in oracle sql 
Sql :: role "postgres" does not exist 
Sql :: q operator in sql 
Sql :: SQL SERVER ORDER BY DATE NULL LAST 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =