describe sql command


SQL> help desc
 DESCRIBE
 --------
 Lists the column definitions for a table, view, or synonym,
 or the specifications for a function or procedure.
 DESC[RIBE] {[schema.]object[@connect_identifier]}
SQL>Â
 EXAMPLE:
SQL> describe emp
 Name                                     Null?   Type
 ----------------------------------------- -------- ----------------------------
 EMPNO                                    NOT NULL NUMBER(4)
 ENAME                                             VARCHAR2(10)
 JOB                                               VARCHAR2(9)
 MGR                                               NUMBER(4)
 HIREDATE                                          DATE
 SAL                                               NUMBER(7,2)
 COMM                                              NUMBER(7,2)
 DEPTNO                                            NUMBER(2)
SQL> desc emp
 Name                                     Null?   Type
 ----------------------------------------- -------- ----------------------------
 EMPNO                                    NOT NULL NUMBER(4)
 ENAME                                             VARCHAR2(10)
 JOB                                               VARCHAR2(9)
 MGR                                               NUMBER(4)
 HIREDATE                                          DATE
 SAL                                               NUMBER(7,2)
 COMM                                              NUMBER(7,2)
 DEPTNO                                            NUMBER(2)
Â
- sql_command's blog
- Login or register to post comments
- 347 reads
- Email this page












