我有个SQL
select * from table where column1='111' and .......其中column1字段类型是varchar2,这个语句很慢,而改成select * from table where column1=111 and ....就很快,请各位解释下这个现象是什么原因,会是因为varchar2有可能使索引失效吗
select * from table where column1='111' and .......其中column1字段类型是varchar2,这个语句很慢,而改成select * from table where column1=111 and ....就很快,请各位解释下这个现象是什么原因,会是因为varchar2有可能使索引失效吗
多Run几次, 取平均时间看看是否真的很慢
select * from table where column1='111'很快
select * from table where column1=111很慢为什么会这样呢,是表的统计信息不准确吗,要怎么查,怎么解决