Chapter 16 Flashcards
Can we manipulate result set and then update database from it
Yes
rs.getString(“name”) do what ?
rs = result set getString = get value from the column of record set in string data type name = any column name in record set
rs.absolute(4) do what
Result sets jumps directly row 4
rs.absolute(-9) do what
Result sets starts from end of it and go reverse back to 9th row.
is update methods overloaded
Yes
What updateRow() method do
It updates underlying database from resultset
What is insert row
There is a special memory buffer in result set where we can add new row in it. Then it inserts newly added row to the underlying database. So insert row insert at record set and database table in one go.
What last() and first() do
It takes to the last or first of ResultSet object
How to get current row number
getRow()