django mysql ORM查询语句
大于和大于等于
模型名.objects.filter(字段名__gt='查询值')
模型名.objects.filter(字段名__gte='查询值')
多数字查询
模型名.objects.filter(字段名__in='查询值')
范围数字查询
模型名.objects.filter(字段名__range='查询值')
包含查询
模型名.objects.filter(字段名__contains='查询值')大小写敏感
模型名.objects.filter(字段名__icontains='查询值')大小写不敏感
开头查询
模型名.objects.filter(字段名__startwith='查询值')大小写敏感
模型名.objects.filter(字段名__istartwith='查询值')大小写不敏感
正则查询
模型名.objects.filter(字段名__regex='查询值')大小写不敏感
模型名.objects.filter(字段名__iregex='查询值')大小写不敏感