In the database/sql package, what method is used to execute a SQL query that returns rows?

  • Query
  • Execute
  • ExecuteQuery
  • Fetch
The correct option is Query. In Go's database/sql package, the Query method is used to execute a SQL query that returns rows from the database. This method is commonly used for SELECT queries.
Add your answer
Loading...

Leave a comment

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