Docs
udb-mysql
rwrouter
Management Function
View the Destination of the Last SQL Route

View the destination of the previous SQL routing

To see where the previous SQL was routed to, you can use the following command:

mysql> ushow last_route;
+-------------+------------+
| LastSqlCmd  | Route      |
+-------------+------------+
| show tables | udb-123qwe |
+-------------+------------+
1 row in set (0.00 sec)

Where, udb-123qwe is the node where the “show tables” SQL was routed.