当前位置: 云海天教程网 > 技术新闻 > 数据库 > 正文 mysql问题记录 作者: 佚名 来源: 网络转载 时间:2020-03-06 select count(1) from dual where exists (select 1 from users where user_id = "100205"); 原因:返回为0的有主键,返回为1的没有主键