CBSE Class 12 Computer Science Question 14 of 47

Interface Python with SQL — Question 4

Back to all questions
4
Question

Question 4

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

  1. row
  2. rowcount
  3. count()
  4. row_count
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.