create table tmp_b(a int,b int);
create table tmp_a(a varchar(24),b int);
insert into tmp_b select 1,13;
insert into tmp_b select 2,13;
insert into tmp_a select '1,2',13;
select *from tmp_a as a ,tmp_b as b where find_in_set(b.a,a.a) and b.a=1;
本文详细介绍了使用SQL创建表、插入数据以及通过find_in_set函数进行复杂查询的方法。
315

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



