MySQL ALGORITHM = UNDEFINED/MERGE/TEMPORTARY 详解视图的三种算法与优化方案


CREATE 
   [ALGORITHM = {
  MERGE  | TEMPTABLE | UNDEFINED}]
VIEW [database_name].[view_name] 
AS
[SELECT  statement]

创建视图语句 create view 可选项 ALGORITHM 子句表示视图处理算法
共三个参数: MERGE | TEMP

你可能感兴趣的:(MySQL,mysql,优化,ALGORITHM)