USE AdventureWorks2019
GO
SELECT
object_name([object_id]) AS TableName,
name AS ColName
FROM sys.columns
WHERE name = 'ModifiedDate'
ORDER BY TableName
SELECT
Table_Name ,
Column_Name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE Column_Name = 'ModifiedDate'
ORDER BY Table_Name
沒有留言:
張貼留言