sql listaindícesemum BD(postgres)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql listaindícesemum BD(postgres)相关的知识,希望对你有一定的参考价值。

SELECT i.relname as indname,
      i.relowner as indowner,
      idx.indrelid::regclass,
      am.amname as indam,
      idx.indkey,
      ARRAY(
      SELECT pg_get_indexdef(idx.indexrelid, k + 1, true)
      FROM generate_subscripts(idx.indkey, 1) as k
      ORDER BY k
      ) as indkey_names,
      idx.indexprs IS NOT NULL as indexprs,
      idx.indpred IS NOT NULL as indpred
FROM   pg_index as idx
JOIN   pg_class as i
ON     i.oid = idx.indexrelid
JOIN   pg_am as am
ON     i.relam = am.oid
order by indname

以上是关于sql listaindícesemum BD(postgres)的主要内容,如果未能解决你的问题,请参考以下文章

sql Nejvyššíčlánkyvkategoriích

sql Capturarsstatísticastabelas

sql CapturarsstatísticasdeSchemas

sql ListadepaísesconsucódigoISO

sql Sql - nalezeni duplicitnich radku(víceloupců)

sql Registro realizados divididoendíasdela semana