我在Teradata有一张表,我怀疑它已被更改。是不是有一个快速的sql命令来获取SQL Server中的信息?
答案 0 :(得分:3)
这是
SELECT TABLENAME, LASTALTERTIMESTAMP
FROM DBC.TABLES
WHERE DATABASENAME = 'My DB Name' -- OPTIONAL
ORDER BY LASTALTERTIMESTAMP DESC
答案 1 :(得分:1)
SELECT TableName, LastAlterTimeStamp
FROM DBC.TABLES
WHERE DATABASENAME = 'Your DB Name' AND tablename='Your Table Name'
ORDER BY LASTALTERTIMESTAMP DESC