Is there a simple alternative in PostgreSQL for this statement created in Oracle?
select table_name from user_tab_columns where table_name = myTable and column_name = myColumn;
Then I check if the query returns anything to prove that the column exists.
I know that with psql I can find them separately, but it is necessary to get the result in the program I am writing to verify that the requested attribute field exists in my database table.
postgresql information-schema
CSharpened Apr 03 '12 at 10:01 2012-04-03 10:01
source share