多項選擇題Django的數(shù)據(jù)庫建模中,支持的外鍵類型都有哪些?()

A.ForeignKey
B.OneToOneField
C.ManyToOneField
D.ManyToManyField


您可能感興趣的試卷

你可能感興趣的試題

2.多項選擇題有一張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)