2010/1/29 Andre Fernandes <[email protected]> > Bom dia, > > Acho que a melhor maneira de fazer isso é usando o information_schema, use > o seguinte select: > > select table_schema, table_name > from information_schema.tables > where table_name like '%sp_funcao%'; > > Não!! A visão "tables" do "information_schema" *não* contém essa informação, veja [1].
Para consultar "funções" use a visão "routines" [2]: select * from information_schema.routines where routine_name ~ 'sp_funcao'; [1] http://www.postgresql.org/docs/current/static/infoschema-tables.html [2] http://www.postgresql.org/docs/current/static/infoschema-routines.html -- Fabrízio de Royes Mello >> Blog sobre TI: http://fabriziomello.blogspot.com
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
