| From: | gonzalo sáenz <gonzalosaenz(at)gmail(dot)com> | 
|---|---|
| To: | roco3d(at)gmail(dot)com | 
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org | 
| Subject: | Re: Obtener lista de tablas de una bd. | 
| Date: | 2005-09-15 13:15:14 | 
| Message-ID: | 7ae163a4050915061519cc8393@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-es-ayuda | 
El 15/09/05, Rodrigo Cortés<roco3d(at)gmail(dot)com> escribió:
> Tratando de aprender desde un libro me encontré con un ejemplo en que
> se hace la siguiente consulta:
seria algo como :
"SELECT relname FROM pg_class WHERE (relname NOT LIKE 'pg_%' AND
relname NOT LIKE 'sql_%') AND relkind = 'r' "
> Supuestamente esta consulta debiera retornar una lista de todas la
> tablas en una base de datos específica sin incluir las de sistema sin
> embargo lo que obtengo es esto:
> 
> sql_languages
> sql_packages
> sql_sizing
> sql_sizing_profiles
> sql_features
> sql_implementation_info
> person
> groupinfo
> message
> userinfo
> 
> Sólo las últimas cuatro filas contienen las tablas de la bd, el resto
> no se que es.
> Alguien puede explicarme que son?? y como puedo modificar la consulta
> para obtener sólo las tablas??
tengo entendido q son tablas que estan en el ANSI SQL
salu2
gonzalo
-- 
When things are investigated, then true knowledge is achieved;
when true knowledge is achieved, then the will becomes sincere;
when the will becomes sincere, then the heart sees correctly;
when the heart sees correctly, then the personal life is
cultivated;when the personal life is cultivated, then the family life
is regulated;
when the family life is regulated, then the national life is orderly;
and when the national life is orderly, then there is peace in this world.
Confucius
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Edwin Quijada | 2005-09-15 13:51:26 | Re: Programa del Curso sobre PostgreSQL | 
| Previous Message | Mauricio Zea (Gmail) | 2005-09-15 12:23:08 | Re: Programa del Curso sobre PostgreSQL |