![](/img/trans.png)
[英]MySQL - How to update two tables with one query where table 2 value is true?
[英]How to compare two table value using mysql query and matched value then print true false using alise filled
在下面尝试使用left join
和CASE WHEN
select
a.enrollment_no,
case when b.enrollment_no is null then 'false' else 'true' end as result
from tbl_block a left join tbl_late_students b
on a.enrollment_no=b.enrollment_no
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.