Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要加入两个表,其中一个行值应该在另一行内。
t1 f1,f2 t2 f11,f22 query select * from t1 join t2 on f1=f11 where f22 LIKE %f2%
我怎么写这个?
正确的语法是:
select * from t1 join t2 on t1.f1 = t2f11 where t2.f22 LIKE concat('%', t1.f2, '%')