单个字段的方式
这种方式很简单,如下所示
select * from activity_template where activity_type in (1,2)
多个字段组合的方式
例如两个字段
select * from activity_template where (activity_type,activity_sub_type) in ((1,19),(1,101))
这种方式很简单,如下所示
select * from activity_template where activity_type in (1,2)
例如两个字段
select * from activity_template where (activity_type,activity_sub_type) in ((1,19),(1,101))
评论 (0)