Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django connection cursor

from django.db import connection
with connection.cursor() as cursor:
  cursor.execute('TRUNCATE TABLE table_name CASCADE')
 
PREVIOUS NEXT
Tagged: #django #connection #cursor
ADD COMMENT
Topic
Name
4+4 =