Home » RDBMS Server » Server Administration » Re: hi
Re: hi [message #373295] Tue, 10 April 2001 12:06 Go to next message
gangadhar gundavaram
Messages: 9
Registered: April 2001
Junior Member
Hi Naresh,

Iam getting no rows found , but this table have primary key . could you see the problem.

SQL> ed
Wrote file afiedt.buf

1 Select constraint_name,constraint_type,status
2 from user_constraints
3* where table_name='olt_student'
4
SQL> /

no rows selected
Re: hi [message #373297 is a reply to message #373295] Tue, 10 April 2001 12:10 Go to previous messageGo to next message
aish
Messages: 44
Registered: March 2001
Member
Use all caps for table name
1 Select constraint_name,constraint_type,status
2 from user_constraints
3* where table_name='OLT_STUDENT'

Thanks,
Aish
Re: hi [message #373298 is a reply to message #373295] Tue, 10 April 2001 13:30 Go to previous messageGo to next message
gangadhar gundavaram
Messages: 9
Registered: April 2001
Junior Member
Hi Aish,

Thanks very much. yeah it is working.
Iam a Web Developer not Data base Programmer

could tell me constraint_type c,p,u Stand for what? how many types of constraint_type are availabe in oracle.

Thanks in Advance
-Gangadhar
Re: hi [message #373299 is a reply to message #373295] Tue, 10 April 2001 13:35 Go to previous messageGo to next message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
C = Check
P = Primary Key
U = Unique Key
R = Referential Integrity
V = Check Option on a view
Re: hi [message #373300 is a reply to message #373295] Tue, 10 April 2001 13:37 Go to previous messageGo to next message
gangadhar gundavaram
Messages: 9
Registered: April 2001
Junior Member
Hi Aish,
If i know the CONSTRAINT_NAME SYS_C003332
can I findout the Feild Name in the table.
because Iam Accessing Production Databse
some body else Created tables.

Thanks in Advance

-Gangadhar
Re: hi [message #373301 is a reply to message #373295] Tue, 10 April 2001 13:40 Go to previous messageGo to next message
gangadhar gundavaram
Messages: 9
Registered: April 2001
Junior Member
Thanks v ery much.

-Gangadhar
Re: hi [message #373304 is a reply to message #373295] Tue, 10 April 2001 16:21 Go to previous messageGo to next message
Amit Chauhan
Messages: 74
Registered: July 1999
Member
Hi,
Yes you can find out.
Try this :
select substr(column_name, 1, 50)
from user_cons_columns
where constraint_name = 'SYS_C003332'
/
Thanks
Amit
Re: hi [message #373305 is a reply to message #373304] Tue, 10 April 2001 16:41 Go to previous messageGo to next message
gangadhar gundavaram
Messages: 9
Registered: April 2001
Junior Member
Hi Amit,

Thanks very much. I got it.

-Gangadhar
Re: hi [message #373308 is a reply to message #373295] Tue, 10 April 2001 18:39 Go to previous message
Naresh Sharma
Messages: 12
Registered: April 2001
Junior Member
Use all caps for table name

Select constraint_name,constraint_type,status
from user_constraints
where table_name='OLT_STUDENT'

------------
Regards

Naresh
Previous Topic: hiredates
Next Topic: Shutdown immediate
Goto Forum:
  


Current Time: Sat Jun 29 00:35:05 CDT 2024