Skip to main content
The SHOW STATEMENT HINTS lists the that have been created for a specific SQL statement fingerprint using the information_schema.crdb_rewrite_inline_hints(), information_schema.crdb_set_session_variable_hint(), information_schema.crdb_pin_plan_gist(), and information_schema.crdb_pin_plan_gram() .

Required privileges

Users must have the privilege to run SHOW STATEMENT HINTS.

Synopsis

show_statement_hints syntax diagram

Parameters

Options

Response

The following fields are returned:

Examples

Show hints for a statement

To show all hints for a specific statement fingerprint:

Show hints with detailed information

To include hint-specific details in the output:
This example shows a REWRITE INLINE HINTS type hint. For a SET VARIABLE hint, the details would include the session variable name and value:
For a hint, the details would include the that describes the pinned plan shapes:

See also