父子表有关联那种exists怎么写?
比如 select * from tableA where exists (select 1 from tableB where tableB.A_id=tableA.id)
看到手册的评论里有提到use(), 没有详细的,use()怎么用?
另外,关于手册吐个槽,whereexists的例子怎么会想到举这种例子的?
SELECT * FROM `think_user` WHERE EXISTS ( SELECT * FROM `think_profile` WHERE `status` = 1 ) 现实里谁会写这种两表没关系的exists子句?