多項選擇題

有一張UserInfo表,需要過濾出姓名(username)為xiaoming,性別(sex)為male的數(shù)據(jù),假設(shè)只有一條數(shù)據(jù)符合條件,以下哪些語法是正確的?()

A.UserInfo.objects.get(username=xiaoming,sex=male)
B.UserInfo.objects.get(username=xiaoming).get(sex=male)
C.UserInfo.objects.filter(username=xiaoming,sex=male)
D.UserInfo.objects.filter(username=xiaoming).filter(sex=male)

微信掃碼免費搜題