Re: Question II
Re: Question II
От:
Christoph Haller <ch@rodos.fzk.de>
Дата:
> > I would like to get all field name of a table within a stored procedure > using pgsql. How to do it?? > SELECT a.attname FROM pg_class c, pg_attribute a WHERE c.relname = '' AND a.attnum > 0 AND a.attrelid = c.oid ORDER BY a.attnum ; gives you the field names of . If you start a psql session with the -E option, you can see how \d is sql-generated. If you are asking for support how to write this pgsql function (table name parameter, query, etc.), then refer to the documentation or send another request. Regards, Christoph