SQL_NO_CACHE是什么意思
原创
52cxy
05-12 14:30
回复数:1
mysql-slow.log慢查询日志中很多这种慢SQL是什么原因,没有具体查询。
SELECT /*!40001 SQL_NO_CACHE */ * FROM `user;
共1条回答

52cxy·2023/05/12
1、/*! */ 这是mysql里的语法,意思是达到条件也会执行;
2、!后面是mysql版本号, 如果本数据库等于或大于此版本号,那么注释内的代码也会执行;
3、这句话完成的意思:如果版本号大于或等于4,会执行 sql_no_cache,就是不用缓存数据;
4、在备份操作(mysqldump)时Mysql 会自动调用此语法;
评论
举报
最近更新
- General error: 1366 Incorrect string value: '
- cURL and libcurl 有何区别与联系
- PHP_XLSXWriter 使用教程
- postgres installation the database cluster in
- error TS2583: Cannot find name 'Map'. Do you
- Failed to mount component: template or render
- Error: libzip5-tools conflicts with libzip-0.
- Got error 'PHP message: PHP Fatal error: Unc
- mysql中使用select into from报错
- General error: 1390 Prepared statement contai