I have a MySQL database, and every 6 months a new table is created with the latest records. Which SQL command can get you the last table created in the database?
Many thanks
You can choose the last create_timeone information_schema.TABLES.
create_time
information_schema.TABLES
For example:
select table_name, create_time from information_schema.TABLES where table_schema = 'andomar' order by CREATE_TIME desc limit 1
You can display from a specific database
SELECT * FROM information_schema.TABLES WHERE table_schema = 'database_name' ORDER BY `TABLES`.`CREATE_TIME` DESC
MySQL information_schema, , .
information_schema
Source: https://habr.com/ru/post/1724084/More articles:How to determine the "narrowest" font in Windows? - user-interfaceiPhone + UITableView + specific row access cell - iphoneIs object overlay also inherited? - javaПолучить все записи, содержащие число - sqlEmacs, Zen Encoding Mode and Putty - emacsCapture downloads to large files - asp.netМожно ли скачать pdf файл через чистый html? - htmlSnow Leopard application not appearing on Leopard - xcodeИзменение элемента checkbox parent css, если флажок установлен или не установлен - javascriptHow to calculate the minimum size of _client_ form .net windows? - .netAll Articles