dbTalk Databases Forums  

desc plus; something that shows constraints too?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss desc plus; something that shows constraints too? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
danwal456@yahoo.com
 
Posts: n/a

Default desc plus; something that shows constraints too? - 02-17-2008 , 05:15 PM






Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?

Thanks

Reply With Quote
  #2  
Old   
Robert Klemme
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 02:07 AM






On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:
Quote:
Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?
There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert


Reply With Quote
  #3  
Old   
Robert Klemme
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 02:07 AM



On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:
Quote:
Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?
There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert


Reply With Quote
  #4  
Old   
Robert Klemme
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 02:07 AM



On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:
Quote:
Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?
There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert


Reply With Quote
  #5  
Old   
Robert Klemme
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 02:07 AM



On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:
Quote:
Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?
There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert


Reply With Quote
  #6  
Old   
Mark D Powell
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 08:33 AM



On Feb 18, 3:07 am, Robert Klemme <shortcut... (AT) googlemail (DOT) com> wrote:
Quote:
On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:

Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?

There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert
Oracle provides access to pretty much every piece of information about
database objects via the rdbms dictionary views. Here is a short
article on some of the most useful views:

How do I find information about a database object: table, index,
constraint, view, etc... in Oracle ?

http://www.jlcomp.demon.co.uk/faq/object_info.html

To answer your question the following query might be of interest:

select search_condition
from all_constraints
where table_name = 'xxxxx'
and owner = 'yyyy'
and constraint_type = 'C'

HTH -- Mark D Powell --




Reply With Quote
  #7  
Old   
Mark D Powell
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 08:33 AM



On Feb 18, 3:07 am, Robert Klemme <shortcut... (AT) googlemail (DOT) com> wrote:
Quote:
On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:

Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?

There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert
Oracle provides access to pretty much every piece of information about
database objects via the rdbms dictionary views. Here is a short
article on some of the most useful views:

How do I find information about a database object: table, index,
constraint, view, etc... in Oracle ?

http://www.jlcomp.demon.co.uk/faq/object_info.html

To answer your question the following query might be of interest:

select search_condition
from all_constraints
where table_name = 'xxxxx'
and owner = 'yyyy'
and constraint_type = 'C'

HTH -- Mark D Powell --




Reply With Quote
  #8  
Old   
Mark D Powell
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 08:33 AM



On Feb 18, 3:07 am, Robert Klemme <shortcut... (AT) googlemail (DOT) com> wrote:
Quote:
On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:

Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?

There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert
Oracle provides access to pretty much every piece of information about
database objects via the rdbms dictionary views. Here is a short
article on some of the most useful views:

How do I find information about a database object: table, index,
constraint, view, etc... in Oracle ?

http://www.jlcomp.demon.co.uk/faq/object_info.html

To answer your question the following query might be of interest:

select search_condition
from all_constraints
where table_name = 'xxxxx'
and owner = 'yyyy'
and constraint_type = 'C'

HTH -- Mark D Powell --




Reply With Quote
  #9  
Old   
Mark D Powell
 
Posts: n/a

Default Re: desc plus; something that shows constraints too? - 02-18-2008 , 08:33 AM



On Feb 18, 3:07 am, Robert Klemme <shortcut... (AT) googlemail (DOT) com> wrote:
Quote:
On Feb 18, 12:15 am, danwal... (AT) yahoo (DOT) com wrote:

Rookie here. Is there a sqlplus command, something like desc, that
also lists column contraints?

There are different ways depending on what you want to achieve. There
is PS/SQL package DBMS_METADATA and there are views like
USER_CONSTRAINTS.

Kind regards

robert
Oracle provides access to pretty much every piece of information about
database objects via the rdbms dictionary views. Here is a short
article on some of the most useful views:

How do I find information about a database object: table, index,
constraint, view, etc... in Oracle ?

http://www.jlcomp.demon.co.uk/faq/object_info.html

To answer your question the following query might be of interest:

select search_condition
from all_constraints
where table_name = 'xxxxx'
and owner = 'yyyy'
and constraint_type = 'C'

HTH -- Mark D Powell --




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.