Skip to main content

LAST_QUERY_ID

Description

Get the query id of the current user's last query.

Syntax

LAST_QUERY_ID()

Return Value

Returns the query id of the current user's last query;

Examples

select last_query_id();
+-----------------------------------+
| last_query_id() |
+-----------------------------------+
| 128f913c3ec84a1e-b834bd0262cc090a |
+-----------------------------------+