SQL语句效率优化--持续更新
1 delete与in搭配使用,效率特别低,如下可解决该问题,not in同理
/*正常写法*/ DELETE from activity where id in ( SELECT id from activity_data); /*优化后写法*/ DELETE from activity where id in (select * from (SELECT id from activity_data) t);
相关推荐
ribavnu 2020-11-16
要啥自行车一把梭 2020-11-12
vitasfly 2020-11-12
ILVNMM 2020-09-19
zycchun 2020-10-16
康慧欣 2020-09-10
liuweiq 2020-09-09
silencehgt 2020-09-07
sunnyxuebuhui 2020-09-07
西瓜皮儿的皮儿 2020-09-07
李轮清 2020-09-15
lifeison 2020-08-18
cyhgogogo 2020-08-18
minerk 2020-08-15
webliyang 2020-08-15
houdaxiami 2020-08-15
抱抱熊 2020-08-15
caodayong 2020-08-15
徐悦TechBlog 2020-08-15