Skip to content

Returns the ID of the most recently executed query.

func.last_query_id()
func.last_query_id()
┌───────────────┐
'abc-123-def'
└───────────────┘
LAST_QUERY_ID()
SELECT LAST_QUERY_ID();
┌─────────────────┐
│ abc-123-def-456
└─────────────────┘