Chapter 2: SQLPlus and iSQLPlus Basics


This chapter begins with a few formalities and definitions, and then dives right into a discussion of the different ways to run SQL commands. Then it introduces the basics of SELECT statements and how we can retrieve and display either all columns or only certain columns of a table.

You will also find out about how to make changes to the rows in a table by using insert, update, and delete statements. In the remainder of the chapter, you will explore various ways to change the structure of tables in the database as well as control the permissions on tables.

Some SQL Formalities

A database engine is the part of an RDBMS that actually stores and retrieves data to and from the data files. The database engine is not very useful unless you can send SQL (Structured Query Language) commands to it and receive the results from those SQL commands (if any).

SQL (Structured Query Language)

The industry-standard database language used to query and manipulate the data, structures, and permissions in a relational database.

Note

“SQL” is usually pronounced “sequel”, but if you refer to “S-Q-L” in a conversation with other database developers and DBAs, they will certainly know what you’re talking about!

It is also important to separate the SQL commands from the command processor itself. For example, Oracle’s SQL*Plus client tool (available on virtually any platform that the Oracle server itself runs on) has a number of other “built-in” commands that look like SQL commands, but operate only within the SQL*Plus environment; these are called SQL*Plus commands. A SQL*Plus command may actually send many SQL commands to the Oracle server.




Oracle9i DBA JumpStart
Oracle9i DBA JumpStart
ISBN: 0782141897
EAN: 2147483647
Year: 2006
Pages: 138
Authors: Bob Bryla

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net