Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 MySQL 中找到所有具有特定列名的表?
我想从 sql 中选择表,其中表有一个名为“TimeStamp”的列。如何列出所有将被选中的表中包含名为“TimeStamp”的列的所有表?我正在使用 MySQL。
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'timestamp' AND TABLE_SCHEMA='YourDatabase';
做完了。
来源