Eric Smith wrote:
All,From the C API, how do I check for the existence of a column name in a given table?
select data_type from information_schema.columns where table_schema='public' and table_name='given_table' and column_name='some_column';
that will return the data_type if the column exists, or return zero rows if it doesn't.
-- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general