Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: oracle equivalent of sp_helpconstraint

Re: oracle equivalent of sp_helpconstraint

From: Wilfrid <grille11_at_yahoo.com>
Date: Mon, 19 Feb 2007 15:18:07 +0100
Message-ID: <45d9b1a0$0$6295$426a74cc@news.free.fr>


Thanks

I used this
select * from ALL_CONS_COLUMNS where owner = 'owner' and table_name = 'tablename' order by position

and worked fine

<frank.van.bortel_at_gmail.com> wrote in message news:1171891443.495843.182240_at_a75g2000cwd.googlegroups.com...
> On 19 feb, 12:54, "Wilfrid" <grill..._at_yahoo.com> wrote:
>> If i would execute
>> sp_helpconstraint tablename
>>
>> would return:
>>
>> constraint_type constraint_name delete actions update actions status enabled status for replication constraint_keys
>> PRIMARY KEY (clustered) PK_keyname (n/a) (n/a) (n/a) (n/a) id,name
>>
>> so i am looking for an oracle equivalent to display constraint information on a table.
>>
>> Thanks
>>
>
> Check the data dictionary: [dba|all]_constraints is the view you want.
> All DD views : http://www.oracle.com/pls/db10g/db10g.catalog_views
>
Received on Mon Feb 19 2007 - 08:18:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US