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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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