简体   繁体   中英

How can I find out the date of the last change on a table in Teradata?

I have a table in Teradata that I suspect was changed. Isn't there a quick sql command to get that info as in SQL Server?

Here it is

SELECT TABLENAME, LASTALTERTIMESTAMP 
FROM DBC.TABLES
WHERE DATABASENAME = 'My DB Name' -- OPTIONAL
ORDER BY LASTALTERTIMESTAMP DESC
SELECT TableName, LastAlterTimeStamp FROM DBC.TABLES WHERE DATABASENAME = 'Your DB Name' AND tablename='Your Table Name' ORDER BY LASTALTERTIMESTAMP DESC

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM