📅  最后修改于: 2022-03-11 14:47:15.078000             🧑  作者: Mango
代码示例2
from django.db import connection
with connection.cursor() as cursor:
cursor.execute('TRUNCATE TABLE table_name CASCADE')