12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2Tutorial: Creating Objects for a SmallDatabaseIn this tutorial, you will use <strong>SQL</strong> <strong>Developer</strong> to create objects for a simplified librarydatabase, which will include tables for books, patrons (people who have library cards),and transactions (checking a book out, returning a book, and so on).The tables are deliberately oversimplified for this tutorial. They would not be adequatefor any actual public or organizational library. For example, this library contains onlybooks (not magazines, journals, or other document formats), and it can contain nomore than one copy of any book.You will perform the following major steps:Creating a Table (Books)Creating a Table (Patrons)Creating a Table (Transactions)Creating a SequenceCreating a ViewCreating a PL/<strong>SQL</strong> ProcedureDebugging a PL/<strong>SQL</strong> Procedure (optional)Using the <strong>SQL</strong> Worksheet for Queries (optional)Related TopicsScript for Creating and Using the Library Tutorial Objects<strong>SQL</strong> <strong>Developer</strong> Concepts and Usage<strong>SQL</strong> <strong>Developer</strong> User InterfaceDatabase Objects2.1 Creating a Table (Books)Tip: To print this tutorial, right-click its book icon in the HelpContents display and select Print Topic Subtree.The Books table contains a row for each book in the library. It includes columns ofcharacter and number types, a primary key, a unique constraint, and a checkconstraint. You will use the Create Table dialog box to create the table declaratively;Tutorial: Creating Objects for a Small Database 2-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!