How to sort information_schema.TABLES's table_name with same collation of MySQL 5.7 on MySQL 8.0.
(Doc ID 3028783.1)
Last updated on OCTOBER 10, 2024
Applies to:
MySQL Server - Version 8.0 and laterInformation in this document applies to any platform.
Goal
If 'test' schema has three tables('CALEN', 'calendar', 'cal_day'), a result of "SELECT TABLE_NAME FROM information_schema.TABLES where table_schema = 'test' order by table_name;" as belows.
+-----------------+
| TABLE_NAME |
+-----------------+
| CALEN |
| calendar |
| cal_day |
+-----------------+
But MySQL 8.0.x returns rows different order. We try to order them as same as MySQL 5.7.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |