MySQL Forums
Forum List  »  Chinese

Re: json结合生成列索引,查询结果不一致,是否正确?
Posted by: Jon Stephens
Date: May 05, 2022 06:01AM

Chen WeiXin 写了:

> 3.疑问
> 同一条SQL语句,有索引和没有索引查询结果不一致,这合理吗?

是的,这是意料之中的。

> 如果用户开始没有建立生成列索引,开始都是查询不到,某一天建立了生成列索引,突然查询到了结果,
> 那不是很大可能影响生产?

很有可能,是的。
为什么不先创建生成的列和索引? 如果不是,你为什么要做出这样的改变并且*不*期望行为会有所不同?

谢谢!

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: json结合生成列索引,查询结果不一致,是否正确?
326
May 05, 2022 06:01AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.