![]() ![]() Insert into tutorials_data values(5, 'Cassandra', 'Pruthvi Raj', DATE(' ')) įollowing JDBC program establishes connection with the database, retrieves the contents of the above table into a ResultSet object displays it contents. Insert into tutorials_data values(4, 'Android', 'Sai Ram', DATE('')) Insert into tutorials_data values(3, 'JavaSprings', 'Amit Tiwari', DATE(' ')) ![]() Insert into tutorials_data values(2, 'JFreeCharts', 'Satish Kumar', DATE(' ')) Now, we will insert 5 records in tutorials_data table using INSERT statements − insert into tutorials_data values(1, 'Java', 'Krishna Kasyap', DATE('')) Let us create a table with name tutorials_data in MySQL database using CREATE statement as shown below − CREATE TABLE tutorials_data ( The isClosed() method of the ResultSet interface is used to determine whether the current ResultSet object is closed. Initially this cursor is positioned before first row (default position). The ResultSet object contains a cursor/pointer which points to the current row. Whenever we execute SQL statements using the executeQuery() method, it returns a ResultSet object which holds the tabular data returned by the SELECT queries(in general). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |