mysql no cache_MySQL 8警告:不建议使用SQL_NO_CACHE - Go语言中文社区

mysql no cache_MySQL 8警告:不建议使用SQL_NO_CACHE


bd96500e110b49cbb3cd949968f18be7.png

When issuing a statement to MySQL8 server:

SELECT SQL_NO_CACHE *

FROM ;

I get this warning:

Warning, 1681, 'SQL_NO_CACHE' is deprecated and will be removed in a

future release.

I would like to ask if there is any successor of the SQL_NO_CACHE that works or is planned to work with MySQL 8.x?

Does SQL_NO_CACHE actually work with MySQL 8.x or it is omitted by the server?

解决方案

Just noticed it, damn it was so useful -_-

Keep using it until it's removed or try SELECT column, now() FROM myTable instead.

I suppose the call will force mysql to not use the cache.

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_39568653/article/details/113130992
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2021-05-16 11:20:48
  • 阅读 ( 1084 )
  • 分类:数据库

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢