如何判断mysql中数据表中两个列之间的相同记录和不同记录

是两个表吧 首先,找ta表中的不同 select f1 from ta where f1 not in ( select f1 from tb ) 把 ta ,f1中不在 tb 的值显示出来 然后,找tb表中的不同 select f1 from tb where f1 not in ( select f1 from ta ) 把 tb ,f1中不在 ta 的值显示出来 ...
如何判断mysql中数据表中两个列之间的相同记录和不同记录
是两个表吧 首先,找ta表中的不同 select f1 from ta where f1 not in ( select f1 from tb ) 把 ta ,f1中不在 tb 的值显示出来 然后,找tb表中的不同 select f1 from tb where f1 not in ( select f1 from ta ) 把 tb ,f1中不在 ta 的值显示出来2017-01-07
mengvlog 阅读 307 次 更新于 2025-12-15 04:37:01 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部