Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to view constraints?

This is a discussion on How to view constraints? within the Oracle forums, part of the Databases category; Hai everybody, Can anyone explain how to view all the constraints of a table in Oracle? ----------- Bhuvana....

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2007
Junior Member
 
Join Date: Jan 2007
Location: Chennai
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Bhuvana07 is on a distinguished road
How to view constraints?

Hai everybody,

Can anyone explain how to view all the constraints of a table in Oracle?

-----------
Bhuvana.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-25-2007
Junior Member
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
ocpdeep is on a distinguished road
Re: How to view constraints?

SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = ''



Quote:
Originally Posted by Bhuvana07 View Post
Hai everybody,

Can anyone explain how to view all the constraints of a table in Oracle?

-----------
Bhuvana.
Reply With Quote
The Following User Says Thank You to ocpdeep For This Useful Post:
  #3 (permalink)  
Old 12-03-2008
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mayur2509 is on a distinguished road
Re: How to view constraints?

well, just an addition to above.
kind of obvious but may be helpful for some newbies:-
as the name is string, it is "case SENSITIVE"..
Reply With Quote
  #4 (permalink)  
Old 12-09-2008
Junior Member
 
Join Date: Dec 2008
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shiv.ks is on a distinguished road
Re: How to view constraints?

Hi,
use this query
select * from user_constraints

In the database , there are a lot of data dictionary.
one of these dictionary, user_constraints is the dictionary.
Reply With Quote
  #5 (permalink)  
Old 12-30-2008
Junior Member
 
Join Date: Dec 2008
Location: ludhiana
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
deep chandan is on a distinguished road
Re: How to view constraints?

can we rename tablespace...?
Reply With Quote
  #6 (permalink)  
Old 12-31-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: How to view constraints?

Quote:
Originally Posted by deep chandan View Post
can we rename tablespace...?

Please do not hijack others threads.
Please start a new fresh thread for your own questions.
Reply With Quote
  #7 (permalink)  
Old 02-13-2009
Junior Member
 
Join Date: Feb 2009
Location: usa
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
fadamum is on a distinguished road
Re: How to view constraints?

issue this command:
select * from user_cons_columns;
or select * from all_cons_columns;
or select * from all_constraints;

Last edited by fadamum; 02-13-2009 at 07:38 PM.
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Tree View using javascript... psuresh1982 JavaScript 0 12-23-2006 08:36 AM
Integrity constraints in Database norman Database General 4 07-26-2006 04:25 PM
WebSphere V5.0 : Use hierarchy view Lokesh M Web Tools 0 06-10-2006 09:12 AM
WebSphere V5.0 : Java Development - Use task view Lokesh M Web Tools 0 06-10-2006 09:06 AM
WebSphere V5.0 : Use Outline and Browsing View Lokesh M Web Tools 0 05-30-2006 03:59 PM


All times are GMT -4. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved