龙空技术网

Mysql hint 提示

零点悟 150

前言:

目前各位老铁们对“mysql获取当天零点”可能比较看重,你们都想要学习一些“mysql获取当天零点”的相关文章。那么小编同时在网上汇集了一些对于“mysql获取当天零点””的相关内容,希望兄弟们能喜欢,你们一起来了解一下吧!

经常使用Oracle的人都知道Oracle的hint 提示功能特别强大,MySQL也有类似的功能,下面是一些MySQL常用的hint 提示。

强制索引 FORCE INDEX

select * from table1 force index (field1) …

忽略索引 IGNORE INDEX

select * from table1 ignore index (field1, field2) …

关闭查询缓冲 SQL_NO_CACHE

select sql_no_cache field1, field2 from table1;

强制查询缓冲 SQL_CACHE

select sql_calhe * from table1;

强制连接顺序 STRAIGHT_JOIN

select table1.field1, table2.field2 from table1 straight_join table2 where …

强制使用临时表 SQL_BUFFER_RESULT

select sql_buffer_result * from table1 where …

标签: #mysql获取当天零点 #mysqlhint #mysql提示