1.MySQL
1.1.正确写法
select * from student where find_in_set(`s_id`, '1,2,3');

1.2.错误示范
select * from student where find_in_set(`s_id`, '1,2 ,3'); -- 注意,中间不能有空格。1、3
select * from student where find_in_set(`s_id`, '1,2, 3'); -- 注意,中间不能有空格。1、2
select * from student where find_in_set(`s_id`, '1,2 , 3'); -- 注意,中间不能有空格。1

2.Oracle
查了半天没查到怎么实现,如果哪位同学会,请指教,在评论区发我一下,谢谢












![[MySQL] MySQL表的约束](https://img-blog.csdnimg.cn/96a7b8872fbc4b0dbd740d93468afc7a.png)






