How to get number of columns in a table with JDBC?

Number of columns in table JDBC ResultSetMetaData interface includes many methods to find the metadata of a table like number of columns, name of each column etc. Following example prints the number of columns of table Employee. Example on number of columns in table JDBC import java.sql.*; public class MetaData { public static void main(String …

How to get number of columns in a table with JDBC? Read More »