Answers for "cursor execute django"

0

django connection cursor

from django.db import connection
with connection.cursor() as cursor:
  cursor.execute('TRUNCATE TABLE table_name CASCADE')
Posted by: Guest on April-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language