79758

79758



Creating a Table

You can usc SQL Developer to crcate a tablc.

In the following example. you creatc a tablc called purchase_orders in the HR schema.

The table has the following columns:

See Also:

■"About Tables" on page 8-5 See Also:

■ "About Tables" on page 8-5

Column Name Data Type Si/.e Not Nuli Primary Key

PO_NUMBER NUMBER Yes Yes PO_DESCRIPTION VARCHAR2 200 No PO_DATE DATĘ Yes Managing Tables

8-12 Oracle Database 2 Day DBA

To create the PURCHASE_ORDERS table in the HR schema:

1.    Navigatc to the Tables nodc in the schema wherc you want to create the ncw tablc, as dcscribed in "Viewing Tables" on page 8-10.

2.    Right-click the Tables node and selcct New Table.

The Create Table dialog box appears, with the Tablc tab displayed.

You can create simple tables quickly using only the default options on the Table tab. If you want to create morę advanced tables, select the Advanced chcckbox, which provides many morę options for table creation. Unselect the Advanced checkbox to return to the default options on the Table tab.

3.    In the Schema field, select HR.

4.    In the Name field, enter PURCHASE_ORDERS.

5.    In the Columns section, enter column information foreach of the columns in the PURCHASE_ORDERS table as specified in the table in the introduction to this topie. For example, for the First column in the PURCHASE_ORDERS table, enter the name

PO_

NUMBER and the data type NUMBER, select the Not Nuli check box, and select the Primary Key check box. Click Add Column after adding a column. and then add the information for the ncxt co



Wyszukiwarka

Podobne podstrony:
Loading Data into a Table You can usc SQL Developer to load data into a table. You can load data fro
Viewing Online Redo Log File Information You can usc EM Express to view status and multiplexing info
230 Illusion Stairway between corners of a fiat square. You can go from corner A to corner B by clim
Creative Doughcraft3 11Tractor You can hang this colourful tractor up anywhere in the home. It woul
Common Oracle DBA Tasks As an Oracle DBA. you can expeci to be involved in the fol łowi ng tasks: ■I
27ddg05 llVisual Basic 4.0 SetupWizard - Ślep 2 of 7 ES Would you like to distribute any of the fol
Creative Doughcraft5 t SCARECROW Roli out some dough to about 6mm (i^in) thick. Cut a rectangle&nbs
Data Type The data type attribute defines the kind of data to be stored in the column. When you crea
Creating a Data Snapshot Using mysąldump One way to create a snapshot of the data in an existing mas
f Ali skin ■ pi^cóons for usc: Citam dcsigncd to super moiscurize &. nourish the^nest skin
image124 (5) Programs and Features
message 7 If you want to take part in the World League you should have at least one world record.
modified words generał vocabularyModified words Wc can somctimes add prefixes to change. or modify.
practise essay 2,3 Practice essay 2    £ Your teacher Kai askcd you to write a compoi

więcej podobnych podstron