KnowledgeBoat Logo
|

Computer Science

Which command is used for counting the number of rows in a database?

  1. row
  2. rowcount
  3. count()
  4. row_count

Python MySQL

1 Like

Answer

rowcount

Reason — The rowcount is a read-only attribute that returns the number of rows affected by an execute() method and retrieved from the cursor.

Answered By

3 Likes


Related Questions