Oracle
  Home arrow Oracle arrow Page 2 - Working With Oracle on Windows: Part 2
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

Working With Oracle on Windows: Part 2
By: Ben Shepherd
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 13
    2003-03-04

    Table of Contents:
  • Working With Oracle on Windows: Part 2
  • Databases
  • Relationships
  • Structuring your database
  • Tables in Oracle
  • User Defined Schema Objects
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working With Oracle on Windows: Part 2 - Databases


    (Page 2 of 7 )

    Since this is only the second of my series, it is important to refresh your knowledge of SQL (i.e. Structured Query Language). As this series progresses the use of SQL will become more sophisticated. Don’t worry about it. You will be able to understand the code when that time comes.

    In my last article, there were a number of people that did not quite understand the code. So, let’s start from the beginning. A database it quite useless without a table. Oracle 9i, which we should already have registered and installed, contains a feature called SQL*Plus.

    You have now read the article and have understood how database is created. Create the database and startup an instance. There is nothing useful inside your database so far. A database may contain at least a table. The table will allow you to store the data in various fields. Well designed tables contain a field which is called a primary key. A primary key is a field in which is used to identify the record/s in the table.

    Two important details about a primary key is that it can not be a null value (i.e. each field must contain a value) and it must have a unique value. This is important because the reason for a primary key is to uniquely identify each record. Imagine if someone had the same credit card number as you … yikes!!!

    It is possible to have more than one primary key (i.e. a composite primary key) – like in a barcode – where there is three parts.

    If you have more than one table and you wish to have the two tables related in some way you can by introducing a foreign key. A foreign key is a field in a table that is used to uniquely identify a record in another table. This introduces relationships between tables.

    More Oracle Articles
    More By Ben Shepherd


     

    ORACLE ARTICLES

    - Partitioning in Oracle. What? Why? When? Who...
    - Datatypes Used in Oracle 9i
    - Creating a Database in Oracle 9i
    - Oracle with Doctor Janusz Getta
    - Working With Oracle on Windows: Part 3
    - Working With Oracle on Windows: Part 2







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek