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

  • DataRow
  • Row
  • RowInterface
  • Rows
The interface used to represent a database row in the database/sql package is Row. This interface provides methods to scan column values from a row into Go variables. It allows fetching values of different data types from a row returned by a database query. Utilizing this interface enables flexible and efficient handling of query results, facilitating data processing and manipulation within Go applications.
Add your answer
Loading...

Leave a comment

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