Multiple choice technology web technology

Which is the function call ensure that SQL statement is executed?

  1. commit()

  2. flush()

  3. close()

  4. list()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The flush() method synchronizes the session state with the database, executing all pending SQL statements. commit() commits the transaction, close() closes the session, and list() returns query results. flush() is what actually ensures SQL execution.