What is the difference between resultset and resultsetmetadata




















A simple example of metadata for a document might include a collection of information like the author, file size, the date the document was created, and keywords to describe the document. CallableStatement is used to execute SQL stored procedures.

This escape syntax has one form that includes a result parameter and one that does not. Which of the following is advantage of using PreparedStatement in Java? This isFirst method is specified by the isFirst method in the java. ResultSet interface. If this method is used with forward and dynamic cursors, an exception is thrown.

Initially this cursor is positioned before first row. The next method of the ResultSet interface moves the pointer of the current ResultSet object to the next row, from the current position. Metadata in Java is used to know the data about data.

It means for example table field names, field data type, field data type length, database table names, number of databases that existed in the specific database, etc. What is DatabaseMetaData? Why ResultSet is used in Java? All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy. Skip navigation links. The posted code doesn't even use the metadata. A little hard for me to answer your questions since you've edited it and I have no idea what it looked like before.

Add a comment. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. What is a savepoint. Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:. Email required Address never made public. Name required. Follow Following. Think Tank Join 30 other followers.



0コメント

  • 1000 / 1000