Home » SQL & PL/SQL » SQL & PL/SQL » Constraints in Describe (Oracle 10g,windows 7)
Constraints in Describe [message #600167] Fri, 01 November 2013 12:47 Go to next message
thelearner
Messages: 133
Registered: April 2013
Location: INDIA
Senior Member
Hi,

I got one doubt...

I want to display columns along with their constraints using describe command

Is it possible?
SQL> desc dept;
 Name                                      Null?    Type
 ----------------------------------------- -------- -------------

 DEPTNO                                             NUMBER(2)
 DNAME                                              VARCHAR2(14)
 LOC                                                VARCHAR2(13)



[Updated on: Fri, 01 November 2013 12:47]

Report message to a moderator

Re: Constraints in Describe [message #600168 is a reply to message #600167] Fri, 01 November 2013 12:49 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Apart from NOT NULL constraint, you can't see other constraint with the DESCRIBE command. Query USER_CONSTRAINTS & USER_CONS_COLUMNS.
Previous Topic: Loop in UTL_FILE is not getting closed
Next Topic: onchange
Goto Forum:
  


Current Time: Fri Apr 26 10:57:41 CDT 2024