Oracle用SQL查詢表結構和表主鍵

SELECT UC.TABLE_NAME, UCC.COLUMN_NAME FROM USER_CONSTRAINTS UC, USER_CONS_COLUMNS UCC WHERE UC.CONSTRAINT_NAME = UCC.CONSTRAINT_NAME AND UC.TABLE_NAME = UPPER('DEMO_USER') AND CONSTRAINT_TYPE = 'P' SE
相關文章
相關標籤/搜索