SQL

Closed
raylop1 Posts 1 Registration date Friday April 22, 2016 Status Member Last seen April 22, 2016 - Apr 22, 2016 at 12:54 PM
 Blocked Profile - Oct 17, 2016 at 06:07 PM
I used the below command to view the tables, but I need the command to see each individual table to see how they are build each;

SQL> Select table_name from user_tables;

TABLE_NAME
------------------------------
PRODUCT
DEPARTMENT
JOB
CUSTOMERS
EMPLOYEE
JOB2
DEPARTMENT2
INVOICE
INVOICELINE

3 responses

Zohaib R Posts 2368 Registration date Sunday September 23, 2012 Status Member Last seen December 13, 2018 69
Apr 22, 2016 at 03:32 PM
Hi raylop1,

You can use sp_help [TableName] to get the Detailed Structure of any table in your Database. For example: for your PRODUCT table you can use:

sp_help [PRODUCT]

This will return the Detailed Structure of [PRODUCT] Table.

Please let us know if this was helpful.
0
sandra_diaz Posts 1 Registration date Monday September 5, 2016 Status Member Last seen October 17, 2016
Oct 17, 2016 at 05:38 AM
Hii,!!!!
Try below-listed command:-

Syntax:
SELECT column_name
FROM table_name;

Example:
SELECT PRODUCT
FROM Table_Name
0
Blocked Profile
Oct 17, 2016 at 06:07 PM
You could always connect to it,with SQuirreL and view it!

It's kind of fun to do the impossible! -Walter Elias Disney
0