Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres get defined index in table

SELECT
    tablename,
    indexname,
    indexdef
FROM
    pg_indexes
WHERE
    schemaname = 'public'
ORDER BY
    tablename,
    indexname;
Code language: JavaScript (javascript)
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #postgres #defined #index #table
ADD COMMENT
Topic
Name
6+6 =