472,328 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

view constraints on table

2
how to view the constraints on the table like the indexes created etc in sql.Its urgent ..
Dec 4 '08 #1
8 34762
anijos
52
Hi

You can use USER_CONSTRAINTS or ALL_CONSTRAINTS to see all the constraints peresent on a table

Try

Select * from all_constraints
where table_name = 'your_table'

The Constraint_Type column will tell you the type of constraint.


Regards,
AniJos
Dec 4 '08 #2
Pilgrim333
127 100+
Hi,

Most tools like TOAD and PL/SQL Developer make it able for you to see it in the interface under the table.

Pilgrim.
Dec 4 '08 #3
hi you can use user_constraints to find the results from the data dict.


regards
Rahul
Dec 5 '08 #4
bubli
2
hi,i tried using the query "select * from all_constraints....",but could not find any result.Regards,bubli
Dec 5 '08 #5
amitpatel66
2,367 Expert 2GB
For Indixes:

Expand|Select|Wrap|Line Numbers
  1.  
  2. select * from user_indexes WHERE table_name=''
  3.  
  4.  
For Constraints:

Expand|Select|Wrap|Line Numbers
  1.  
  2. select * from user_constraints WHERE table_name=''
  3.  
  4.  
Dec 8 '08 #6
debasisdas
8,127 Expert 4TB
@bubli
try to specify the owner as well with name of the object.
Dec 8 '08 #7
It doesn't work in ORACLE 11g
Feb 10 '17 #8
SQL> select * from all_constraints where table_name='departments';

no rows selected

I tried to view the constraints in the built-in schema @amitpatel66
Feb 10 '17 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: js | last post by:
I am trying to create a primary key constraint on a view in the following statement. However, I got an error ORA-00907: missing right parenthesis....
2
by: tracy | last post by:
when i run the statement: SQL> select rowid from student_semester; ERROR at line 1: ORA-01445: cannot select ROWID from a join view without a...
3
by: Thomas R. Hummel | last post by:
I am using SQL Server 2000, SP3. I created an updatable partitioned view awhile ago and it has been running smoothly for some time. The partition...
10
by: serge | last post by:
I am doing a little research on Google about this topic and I ran into this thread: ...
2
by: Chris | last post by:
I think I already know that the answer is that this can't be done, but I'll ask anyways. Suppose you want to use an RDBMS to store messages for a...
2
by: Sathyaram Sannasi | last post by:
I'm testing a UNION ALL View (say UA_VIEW) of 12 tables - one table for each year - 5 million records/table on an average. Check constraints are...
2
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of...
3
by: teedilo | last post by:
Our MS SQL (SQL Server 2000) DBA has database privileges locked down pretty tightly. We end users/developers do not have administrator privileges...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. ...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.