04 2022 档案

摘要:两个有关联的表 1.查两个表的关联数据用join 2.查大表数据用in: select * from 大表 where id in (select id from 小表) 3.查小表的数据用exists: select * from 小表 where exists (select 1 from 大表 阅读全文
posted @ 2022-04-12 22:50 zzw_1987 阅读(251) 评论(0) 推荐(0)