您的位置:首页技术文章

MySQL 5.0 Not in 注意

【字号: 日期:2023-10-12 09:04:12浏览:46作者:馨心

功能有误的(大数据情况下):select * from table where id not in (values);

正常的(适用大数据)

select * from table where id not in (select id from subtable)

从5.0 开始支持子查询

标签: MySQL 数据库