weixin_38081382 2017-10-26 00:25 采纳率: 100%
浏览 2080
已采纳

mysql exists的用法 exists中必须是另外一个表的结果吗?

select * from t where deptId exists(1,6); 为什么会报错呢,不能这样使用吗?

  • 写回答

2条回答 默认 最新

  • threenewbee 2017-10-26 00:35
    关注

    select * from t where deptId in(1,6);

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?