
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How to get the creation date of a MySQL table?
To get the creation date of a MySQL table, use create_time from information_schema.tables. The syntax is as follows −
SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'yourDatabaseName' AND table_name = 'yourTableName';
My table name is 'skiplasttenrecords' and database is ‘test’.
Implement the above syntax for your database and table name. The query is as follows −
mysql> SELECT create_time FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'test' −> AND table_name = 'skiplasttenrecords';
The following is the output displaying the creation date −
+---------------------+ | CREATE_TIME | +---------------------+ | 2018-11-29 15:47:14 | +---------------------+ 1 row in set (0.00 sec)
- Related Articles
- How do I get the creation date of a MySQL table?
- How to get the creation time of recently created table in MySQL?
- How to get creation and modification date/time of a file using Python?
- How to get file creation & modification date/times in Python?
- How can I the date of creation and updation of tables in MySQL?
- MySQL query to display databases sorted by creation date?
- How do you get a directory listing sorted by creation date in Python?
- How to change the date in a table with date records with MySQL?
- How to get the datatype of MySQL table columns?
- How to set creation and modification date/time of a file using Python?
- How to search a record by date in MySQL table?
- How to get primary key of a table in MySQL?
- MySQL query to fetch the latest date from a table with date records
- Get the creation time of a file in C#
- How to insert date record to the same table with different date formats with MySQL?

Advertisements