Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Seeking Advice: MS SQL DBA learning Oracle?

Re: Seeking Advice: MS SQL DBA learning Oracle?

From: John Russell <netnews3_at_johnrussell.mailshell.com>
Date: Wed, 08 May 2002 17:51:49 GMT
Message-ID: <afoidukdr6irega01ab32qbevi0qts74eo@4ax.com>


On 08 May 2002 13:06:58 GMT, sqljoe_at_aol.com (SQLJoe) wrote:
>What is the major
>differences between SQL, SQL plus, and PL/SQL?

SQL is the basic language for doing queries, insert / update / delete etc. one statement at a time.

PL/SQL lets you do loops, IF-THEN, procedure calls, declare variables, etc. with SQL statements interspersed. You would typically use it for the bodies of triggers and stored procedures. There are lots of APIs callable from PL/SQL.

SQL*Plus is a tool for interactively issuing SQL statements and PL/SQL blocks. Many of its commands are concerned with formatting the output --- how wide to make each column, whether to pause after each N lines, etc.

Each one has its own reference book, and various others explain how to accomplish particular tasks with one language or a mixture of languages:

http://tahiti.oracle.com/pls/db901/db901.docindex?preference=SQL

When you're typing away in SQL*Plus, it isn't so important which command is part of which language or tool, so there is a quick reference that combines syntax for SQL, PL/SQL, and SQL*Plus:

http://tahiti.oracle.com/pls/db901/db901.sql_keywords

John

--
Got an Oracle database question?
Try the search engine for the database docs at:
http://tahiti.oracle.com/

The opinions expressed above are mine and do not
necessarily reflect those of Oracle Corporation.
Received on Wed May 08 2002 - 12:51:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US