lch
lch

Reputation: 4951

Retrieving column names from a table without using ResultSetMetaData

Can we get table column info without using ResultSetMetaData object. Any other alternative?

Upvotes: 0

Views: 798

Answers (1)

Andreas
Andreas

Reputation: 159215

You can get the column info of a table without running a SELECT statement by calling Connection.getMetaData().getColumns(null, null, "MyTable", "%").

Upvotes: 1

Related Questions