how can we get the metaData (columnNames) from a table which
has no Records..
Answers were Sorted based on User's Feedback
Answer / sreenivas
Hi,
You can use DatabasrMetaData class to get the databse
information like... schenmaname, tables, columnnames,
etc....
DatabaseMetaData metaData = new DBConnection().getMetaData
();
| Is This Answer Correct ? | 2 Yes | 1 No |
Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");
How can we set null value in jdbc preparedstatement?
Why do we need jdbc driver?
How to find the column count in resultset?
What is meant by connection string?
What is the use of dialect?
what is connection pooling?
What is difference between java.util.Date and java.sql.Date?
What are the flow statements of jdbc?
What does the jdbc resultsetmetadata interface?
What is the return type of class.forname() method?
What is namedparameterjdbctemplate?