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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Use SQL to get constraints

Re: Use SQL to get constraints

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: 2000/05/15
Message-ID: <8folvj$hc7$1@soap.pipex.net>#1/1

take a look at the dba views

dba_tables.
dba_constraints.
dba_triggers.

and alternative quick and dirty approach if you have an export file is to run imp show and pipe the output to a text file.

--
Niall Litchfield
Oracle DBA
Audit Commission UK
<code_1_at_my-deja.com> wrote in message news:8fi1q5$1df$1_at_nnrp1.deja.com...

> I am using Oracle for Windows 95 (Release 7.3.4),
> SQL Plus 3.3 and a test database. I would like to
> get table definitions and constraints using SQL.
> I tried the sp_helpconstraint system stored
> procedure, but it doesn't work. It is not
> recognized as valid. I would like to get the data
> types, constraints, defaults, rules, and triggers
> of any table, using SQL.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Mon May 15 2000 - 00:00:00 CDT

Original text of this message

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