Home > Database > Mysql Tutorial > body text

mysql not in(一批数据) 数据量大 线上不适合建表

WBOY
Release: 2016-06-06 09:42:06
Original
1447 people have browsed it

mysql数据

select * from tb_aabb where id not in (20001,20002,20185,20204,20285,20738,40002,40003,40004,40005,40006,40011,40013);

tb_aabb数据量百万级,同时id总量有1500,线上数据不适合建表联表,这种的有什么解决方案么?谢过了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template