Java Resultset Mysql Query. The ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database executeQuery method of the Statement interface in general. The rows contained in the result set depend on how the underlying database generates the results.
Its cursor moves forward only from before the first row to after the last row. Create a Java Connection to the MySQL database. Ask Question Asked 8 years 5 months ago.
Viewed 25k times 4.
MySQL and Java JDBC. JDBC is an API for the Java programming language that defines how a client may access a database. Define the SELECT statement. Println The columns in the table are.