postgresql查詢表的主鍵

--查詢主鍵名稱 SELECT     pg_constraint.conname AS pk_name FROM     pg_constraint INNER JOIN pg_class ON pg_constraint.conrelid = pg_class.oid WHERE     pg_class.relname = ' table_name' AND pg_constraint.co
相關文章
相關標籤/搜索