こんにちはここで私の興味は、私が試したテーブルのリストの作成時間を取得するために、特定の日付に作成されたすべてのテーブルを取得することです。
select table_name,create_time
from information_schema.tables
where table_schema='database_name'
そして私は次のような結果を得ました
| Table_name | 2012-09-13 03:09:50 |
| Table_name | 2012-10-01 08:05:41 |
| Table_name | 2012-10-01 08:05:41 |
| temp | 2011-05-25 03:05:50 |
今、私はこれのために2012-10-01に作成されたテーブルを取得する必要があります:
select table_name,create_time
from information_schema.tables
where table_schema='database_name' and create_time='2012-10-01'
そして私は結果を得ていEmpty set (5.09 sec)
ます。
ここでは、時間に関係なく、2012-10-01に作成されたすべてのテーブルを取得する必要があります。