Which interface in the database/sql package is used to represent a prepared statement?

  • Statement
  • PreparedStatement
  • PreparedQuery
  • QueryStatement
The correct option is PreparedStatement. In Go's database/sql package, a prepared statement is represented using the PreparedStatement interface. Prepared statements can be used 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 *