SHOW STATEMENT HINTS lists the that have been created for a specific SQL statement fingerprint using the information_schema.crdb_rewrite_inline_hints() built-in function.
Required privileges
Users must have the privilege to runSHOW STATEMENT HINTS.
Synopsis
Parameters
| Parameter | Description |
|---|---|
string\_or\_placeholder | The SQL statement fingerprint to show injected hints for. This can be a string literal (such as 'SELECT \* FROM users WHERE city = \_') or a SQL parameter placeholder (such as $1) for use in prepared statements. |
Options
| Option | Value | Description |
|---|---|---|
DETAILS | N/A | Include hint-specific information in JSON format. |
Response
The following fields are returned:| Column | Type | Description |
|---|---|---|
row\_id | INT | A unique ID. |
fingerprint | STRING | The SQL statement fingerprint that the hint applies to. |
hint\_type | STRING | Hint type. rewrite\_inline\_hints indicates an injected hint. |
created\_at | TIMESTAMPTZ | The timestamp when the injected hint was created. |
details | JSONB | When the DETAILS option is specified, hint-specific information in JSON format. For rewrite\_inline\_hints, this includes the donor SQL fingerprint with hints that will be applied. |

