How to find specific table from DB in postgresql? -
in db have 642 tables. have search specific table name contain empsal
in it's name. above many tables there contain keyword in start of name or end of name or in between.
so want list tables have empsal
in it's name @ place.
an newer postgresql don't know how so.
is there method can me ?
any suggestion this?
this query:
select table_name information_schema.tables table_schema='public' , table_type='base table';
should give list of tables in database. can add @ end:
and table_name '%empsal%';
don't forget remove previous semicolon, or you're going have syntax error :)
Comments
Post a Comment