知道是这个 意思,就是不知道怎么写,能把我的原代码合并为一个吗?
并集用and连接就行了
(性别 = '男' and 年月 in ('201801','201802','201803')) and (性别 = '女' and 年月 in ('201301','201302','201303'))