AllExperts > Oracle 
Search      
Oracle
Volunteer
Answers to thousands of questions
 Home · More Oracle Questions · Answer Library  · Encyclopedia ·
More Oracle Answers
Question Library

Ask a question about Oracle
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Peter Choi
Expertise
I am a senior Oracle DBA, PeopleSoft Administrator and Project Manager with 10+ years experience. I have been working with PeopleSoft (HRMS 5, 7, 7.x and 8.9), Oracle RDBMS (7.3 - 11gR1) on various Unix and Windows platforms, and some Oracle Application Server (9i/10gR2). I also have experience with the configuration and administration of BEA`s Tuxedo and WebLogic for PeopleSoft 8.x.

 
   

You are here:  Experts > Computing/Technology > Oracle > Oracle > table

Oracle - table


Expert: Peter Choi - 4/20/2009

Question
What is table? what is field, record,column and row and their difference?

Answer
Hi there,

In databases, a table is composed of attributes, typically called columns. Theses columns (or fields) hold information that is relevant to the table. An example of a table and columns:

PERSON (table)
------
PERSON_ID     NUMBER(10)
LAST_NAME     VARCHAR(50) <-- Column identifier and type
FIRST_NAME    VARCHAR(50)
BIRTH_DATE    DATE

In this example, the person table (above) contains 4 columns (or fields), namely PERSON_ID, LAST_NAME, FIRST_NAME and BIRTH_DATE. Each column contains some attribute type. PERSON_ID is defined as a number type with a length of 10 (or up to 10 digits). The LAST_NAME column is defined as a variable character of length 50 (or up to 50 characters).


A Row (or tuple in database relational language) is made up of 1 entry in the PERSON table. So 1 row in this table could look like this:

PERSION_ID      LAST_NAME      FIRST_NAME     BIRTH_DATE
----------      -------------  -------------  -----------
0000192873      Smith          John           04-DEC-1994

A ROW and RECORD can be used interchangeably.

Hope this helps.

Peter

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.