2009-10-08 2 views

Répondre

5
SELECT l.column_name, l.position 
FROM all_constraints n 
JOIN all_cons_columns l 
ON  l.owner = n.owner 
     AND l.table_name = n.table_name 
     AND l.constraint_name = n.constraint_name 
WHERE n.constraint_type = 'P' 
     AND n.table_name = 'MYTABLE' 
     AND n.owner = 'SCOTT' 
Questions connexes