标签: python mysql database django
MYTable.objects.filter( where id = 42, 55, 65, and 55)
并返回一个查询集?
答案 0 :(得分:12)
MYTable.objects.filter( id__in = [42,55,65,55] )