2009-11-27 6 views

답변

7

당신은 information_schema.TABLES에서 마지막 create_time를 선택할 수 있습니다. 예를 들어

:

select table_name, create_time 
from information_schema.TABLES 
where table_schema = 'andomar' 
order by CREATE_TIME desc 
limit 1 
1

MySQL의 저장 information_schema 데이터베이스에이 정보, 당신이 내가 당신으로부터 정보를 얻을 수 있습니다, 그래서 그것을 액세스 할 수 있습니다.

2

당신은 특정 데이터베이스

SELECT * 
FROM information_schema.TABLES 
WHERE table_schema = 'database_name' 
ORDER BY `TABLES`.`CREATE_TIME` DESC 
+1

이 기본적으로 Andomar의 대답에서 표시 할 수 있습니다, 안 그래? –

관련 문제