how to check if something exists in an sql column java

Solutions on MaxInterview for how to check if something exists in an sql column java by the best coders in the world

showing results for - "how to check if something exists in an sql column java"
Sylvester
03 Oct 2017
1DatabaseMetaData md = connection.getMetaData();
2ResultSet rs = md.getColumns(null, null, "table_name", "column_name");
3 if (rs.next()) {
4      //Column in table exist
5    }
6
similar questions