I was wondering how to determine if a column with a specific name exists in a specific database table. I use JDBC, but if it can be done using pure SQL, it is even better. However, the solution must be independent of the DBMS provider. I think I could do this by querying the first row of the table and getting ResultSetMetaData, but this assumes there is a row in the table. I would like him to work with an empty table. Thanks in advance!
source share