Difference between revisions of "Oracle"
Line 8: | Line 8: | ||
SELECT * FROM DEPT; | SELECT * FROM DEPT; | ||
− | There will be exercises for you to try out too | + | There will be exercises for you to try out too. In most cases you will be given the results from the query, these will also be presented in a box. For example, the results for Exercise 1 is: |
+ | |||
+ | Name Null? Type | ||
+ | ----------------------------------------- -------- ---------------------------- | ||
+ | CNO NUMBER(4) | ||
+ | ORDERDATE DATE | ||
+ | NAME VARCHAR2(15) | ||
+ | CITY VARCHAR2(15) | ||
+ | COUNTRY VARCHAR2(15) | ||
+ | PNO NUMBER(4) | ||
+ | DESCRIPTION VARCHAR2(20) | ||
+ | QTY NUMBER(4) | ||
Note, when running the commands in Oracle you will need to press RETURN after each line. | Note, when running the commands in Oracle you will need to press RETURN after each line. |
Revision as of 20:20, 15 February 2016
Main Page >> Oracle and SQL
Oracle 12c Version 12.1.0.1.0
The purpose of this handout is to introduce using SQL from the Oracle database management system (DBMS). It is intended to be supplemented by a lecture course.
Commands to try out are in a box, for example:
SELECT * FROM DEPT;
There will be exercises for you to try out too. In most cases you will be given the results from the query, these will also be presented in a box. For example, the results for Exercise 1 is:
Name Null? Type ----------------------------------------- -------- ---------------------------- CNO NUMBER(4) ORDERDATE DATE NAME VARCHAR2(15) CITY VARCHAR2(15) COUNTRY VARCHAR2(15) PNO NUMBER(4) DESCRIPTION VARCHAR2(20) QTY NUMBER(4)
Note, when running the commands in Oracle you will need to press RETURN after each line.
Menu options (Windows) that involve more than one step will be shown as a sequence, separated by the greater than symbol (>), for example:
File>Open
Means select File from the main Window menu then Open from the submenu
If you spot any errors in this workbook, please inform the Oracle DBA: Mary Garvey