2021年1月28日

摘要: A、B两表,找出ID字段中,存在A表,但是不存在B表的数据。 方法一:使用 not inselect distinct A.ID from A where A.ID not in (select ID from B) 方法二:使用 left join...on... , "B.ID isnull" 阅读全文

posted @ 2021-01-28 20:51 jiaoqing。 阅读(1565) 评论(0) 推荐(0)

摘要: SELECT 表名.字段 FROM 表名 where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(时间字段名) 阅读全文

posted @ 2021-01-28 15:03 jiaoqing。 阅读(3300) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3