單項(xiàng)選擇題

如何使用ORM實(shí)現(xiàn)以下查詢SQL,SELECT*FROMorderWHEREidBETWE130.如何使用ORM實(shí)現(xiàn)以下查詢SQL,SELECT*FROMorderWHEREidBETWE,EN20AND100AND(num<=20ornum>=30);()

A.Order.objects.filter(id__gt=20,id__lt=100).filter(Q(num<=20)Q.num>=30))
B.Order.objects.filter(id__gt=20,id__lt=100).filter(Q(num__lte=20)Q.num__gte=30))
C.Order.objects.filter(Q(id__gt=20)&Q(id__lt=100)).filter(Q(num__lte=20)Q.num__gte=30))
D.Order.objects.filter(Q(id__gt=20)&&Q(id__lt=100)).filter(Q(num__lte=20)Q.num__gte=30))

微信掃碼免費(fèi)搜題