The _______ interface in the database/sql package is used to represent a prepared statement.

  • Rows
  • Stmt
  • RowsAffected
  • Exec
The correct option is Stmt. In Go's database/sql package, the Stmt interface represents a prepared statement. Prepared statements allow you to execute the same SQL statement repeatedly with high efficiency.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *