返回顶部

2024年3月11日

sql中的exist和in查询记录

摘要: 一、示例 对于两个表A、B,以id作为两表的关联条件作查询,三条sql语句 1、select * from A where id in (select id from B) 使用in 2、select * from A where exists(select B.id from B where B. 阅读全文

posted @ 2024-03-11 23:01 weilanhanf 阅读(39) 评论(0) 推荐(0) 编辑

导航