Re: using a select.
Posted in 1997
Carol Davies — — source: Informix-list mailing list archive (1991-1998)
Keith bugeja wrote:
>
> Hi everybody,
>
> does anyone know if it is possible to get the name of the columns of a table
> using the 'execute procedure' to execute a procedure that contains a select
> statement.
>
> Best regards.
I'm not sure I'm understanding your question in its entirety, but
you can always select the attribute colname from syscolumns, if you know
the table name, in a stored procedure, and return the attribute, by the
following in foreach loop:
select c.colname from syscolumns c systables t
where t.tabname=somename and t.tabid = s.tabid
--Carol Davies
cdavies@csc.com