1.查询
函数:raw(sql语句)
语法:Entry.objects.raw(sql)
返回:QuerySet
2.增删改
from django.db import connection
def doSQL(request):
with connection.curso() as cursor:
sql = "update user set age=age+10"
cursor.execute(sql)
return ''