SQL Plus

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 10

SQL *PLUS

CONTENT

• SQL *Plus Commands


• Errors & help Alternate Text Editors
• SQL *Plus Worksheet
• iSQL *Plus
INTRODUCTION

• SQL *Plus is a command-line tool that provides access to the oracle


RDBMS.
• SQL*Plus has been enhanced with scripting and formatting capabilities, and
can now be used for many different purposes.
COMMANDS

• Running a command file


• SQL > START filename.sql
• SQL statement
• SELECT [DISTINCT | ALL] {* | Select_list} FROM {table_name [alias] | view_name}
• Logout of SQL *Plus
• { EXIT | QUIT }
• Start up a database
• STARTUP PFILE = filename [ MOUNT [ dbname ] | NOMOUNT | ... ]
COMMANDS

• GET filename [.ext]


• START filename [.ext]
• EDIT [filename [.ext]]
• EXIT
• APPEND text
• CHANGE / old / new
• CLEAR BUFFER
• DEL
• CLEAR SCREEN
• RUN
SQL *PLUS WORKSHEET

• It provides a SQL Worksheet that you can use to query data, by writing
simple or complex SQL statements.
• The SQL Worksheet allows you to enter, edit, and execute SQL and PL/SQL
code.
USING THE SQL WORKSHEET

• A SQL worksheet window consists of the following elements :


• Input pane
• Output pane
• Split bar
• Input pane toolbar
• Output pane toolbar
• Worksheet pull-down menu
ISQL *PLUS

• iSQL*Plus is a browser-based interface to SQL*Plus. 


• iSQL*Plus is a component of the SQL*Plus product.
• We can use iSQL*Plus to write SQL*Plus, SQL and PL/SQL commands to:
• Enter, edit, run and save SQL commands and PL/SQL blocks.
• Calculate, and print query results.
• List column definitions for any table.
• Access and copy data between databases.
• Perform database administration.

You might also like