Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count the number of rows in a database table in Django

use ".count()"

Example:-
Number_of_Messages = Messages.objects.count()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #number #rows #database #table #Django
ADD COMMENT
Topic
Name
9+7 =