如果忘記某個欄位是屬於哪個table的話可以使用
SELECT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME = '欄位名稱';
=== table list===
select * FROM INFORMATION_SCHEMA.TABLES
SELECT TABLE_NAME, COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME = '欄位名稱';
=== table list===
select * FROM INFORMATION_SCHEMA.TABLES
留言
張貼留言