Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> What is wrong ?
Hi,
i am trying to create select query. the query should include all columns of a table, table name, column_name of the constraint, constraint name,constraint type.
some thing is wrong is in my query !!!!
SELECT DISTINCT ALL_CONS_COLUMNS.COLUMN_NAME
"ALL_CONS_COLUMNS.COLUMN_NAME", ALL_TAB_COLUMNS.TABLE_NAME "ALL_TAB_COLUMNS.TABLE_NAME", ALL_TAB_COLUMNS.COLUMN_NAME "ALL_TAB_COLUMNS.COLUMN_NAME",CON.CONSTRAINT_NAME CONSTRAINT_NAME,
SYS.ALL_TAB_COLUMNS ALL_TAB_COLUMNS, SYS.ALL_CONSTRAINTS CON
![]() |
![]() |