DECODE_TRACE_ID
Declaration
DECODE_TRACE_ID()
Description
DECODE_TRACE_ID() parses a trace_id and returns the IP address and port of the server from which the SQL request originated.
Examples
SELECT DECODE_TRACE_ID(LAST_TRACE_ID());
The return result is as follows:
+----------------------------------+
| DECODE_TRACE_ID(LAST_TRACE_ID()) |
+----------------------------------+
| xxx.xx.xxx.xx1:2882 |
+----------------------------------+
1 row in set (0.000 sec)