select * from table where id=1 and uid=2 and (status=2 or status=3 or status=4);
转载于:https://www.cnblogs.com/houweijian/p/3314648.html
本文介绍了一种使用SQL进行复杂条件筛选的方法,通过一个具体的例子展示了如何在一个表中选择满足多个条件的记录,包括ID、UID以及状态等字段的精确匹配。
select * from table where id=1 and uid=2 and (status=2 or status=3 or status=4);
转载于:https://www.cnblogs.com/houweijian/p/3314648.html
4079
3469
2608
1408

被折叠的 条评论
为什么被折叠?