Wyświetliś listę tabel w bazie ale w kolejności takiej:
T1, T2, T10, T20 itd....
a nie takiej
T1, T10, T2, T20 itd.....
Nazwy tabel muszą takie juz być.
strife
20.07.2013, 09:41:37
SELECT table_name, engine
FROM information_schema.TABLES
WHERE table_type = 'BASE TABLE' AND table_schema='database_name'
ORDER BY table_name ASC;
Kod
źródło: http://stackoverflow.com/questions/13290384/mysql-sort-order-show-tables