错误:错误:无法删除类型some enum type
,因为其他对象依赖于它
我如何知道哪些物体依赖它?
答案 0 :(得分:0)
SELECT c.table_name, c.column_name from INFORMATION_SCHEMA.columns c
INNER JOIN INFORMATION_SCHEMA.tables t ON t.table_name = c.table_name
WHERE c.data_type = 'USER-DEFINED' AND udt_name = 'my enum type name'