Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

Viewing the Execution Plan

Updated on 2023-11-03 GMT+08:00

Function

This statement returns the logical plan and physical execution plan for the SQL statement.

Syntax

1
EXPLAIN [EXTENDED | CODEGEN] statement;

Keyword

EXTENDED: After this keyword is specified, the logical and physical plans are outputted at the same time.

CODEGEN: After this keyword is specified, code generated by using the Codegen is also outputted.

Precautions

None

Example

To return the logical and physical plans of SELECT * FROM test, run the following statement:

1
EXPLAIN EXTENDED select * from test;
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback