亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 怎么知道delete是否用到索引? [打印本頁(yè)]

作者: bandw    時(shí)間: 2006-10-30 14:07
標(biāo)題: 怎么知道delete是否用到索引?
delete from table where id in(1, 2, ...)

是不是和
select * from table where id in(1, 2...)用到的索引一樣?
作者: qlks    時(shí)間: 2006-10-30 15:32
一樣
總要先找到了在刪吧
作者: UIRL    時(shí)間: 2006-10-30 16:12
explain delete from table where id in(1, 2, ...)

查看.
作者: yejr    時(shí)間: 2006-10-30 17:22
原帖由 UIRL 于 2006-10-30 16:12 發(fā)表
explain delete from table where id in(1, 2, ...)

查看.


explain不支持delete,不過(guò)可以把delete改成select,如2樓所說(shuō)。他倆用的索引是一樣滴




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2