[WITH [RECURSIVE] cte_name [(col_name [, col_name] ...)] AS (subquery)[, cte_name [(col_name [, col_name] ...)] AS (subquery)] ...]SELECT[ALL | DISTINCT | DISTINCTROW]select_expr [, select_expr] ...[FROM table_references[WHERE where_condition][GROUP BY {col_name | expr | position} [, ...][WITH ROLLUP]][HAVING where_condition][WINDOW window_name AS (window_spec)[, window_name AS (window_spec)] ...][ORDER BY {col_name | expr | position} [ASC | DESC] [, ...]][LIMIT {[offset,] row_count | row_count OFFSET offset}]]
WITH Common Table Expressions (CTEs), including recursive CTEs with WITH RECURSIVE.UNION, UNION ALL, INTERSECT, INTERSECT ALL, EXCEPT, and EXCEPT ALL.INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN, and STRAIGHT_JOIN.OVER clause).IN subqueries, EXISTS subqueries, and correlated subqueries.GROUP BY ... WITH ROLLUP.HIGH_PRIORITY: This keyword is used to set the execution priority for SELECT statements. The read-only analysis instance schedules queries based on its own columnar execution optimizer, rendering this keyword ineffective.STRAIGHT_JOIN (when used as a SELECT option): This keyword is used to force the optimizer to join tables in the order listed in the clause. The read-only analysis instance selects execution plans entirely based on its own columnar execution optimizer, rendering this keyword ineffective.SQL_SMALL_RESULT, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_NO_CACHE, and SQL_CALC_FOUND_ROWS: These query options are all ineffective in the read-only analysis instance.PARTITION (partition_list) clause: The read-only analysis instance currently does not support the query path for partition tables. Queries using this clause will fail to execute.FOR UPDATE clause: The read-only analysis instance is designed for read-only analysis scenarios and does not support row-level exclusive locks. Queries using this clause will fail to execute.LOCK IN SHARE MODE clause: The read-only analysis instance does not support row-level shared locks by default. Queries using this clause will fail to execute.INTO DUMPFILE clause: An error is reported during the syntax parsing phase.INTO @variable clause: An error is reported during the syntax parsing phase.LOCK IN SHARE MODE clause can be enabled as a no-op (no operation) compatibility mode by setting the system variable libra_enable_noop_functions to ON. Once enabled, this clause is syntactically accepted but does not produce an actual locking effect.INTO OUTFILE clause can be parsed syntactically, but its execution requires the corresponding FILE privilege and environment configuration. It is recommended to avoid using it in the read-only analysis instance.Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários