摘要:
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mainInfoId); 使用 in 方式select * from A where id in (select 阅读全文
posted @ 2019-08-29 22:27
明天,你好啊
阅读(3706)
评论(0)
推荐(0)
摘要:
sql使用case when then 判断某字段是否为null没效果 CASE columnName WHEN null THEN 0 ELSE columnName END虽然columnName 为空,但结果不为0,结果应该为0才对。 正确写法: CASE WHEN columnName is 阅读全文
posted @ 2019-08-29 18:07
明天,你好啊
阅读(1645)
评论(0)
推荐(0)

浙公网安备 33010602011771号