Sie sind auf Seite 1von 12

DEPARTMENT OF TECHNICAL

EDUCATION ANDHRA PRADESH


Name : M.Bhagya Lakshmi,
Designation : Lecturer in CCP,
Institution : GMR Polytechnic, Gajwel
Branch : DCCP
Semester : V Semester
Major Topic : SQL Plus
Sub –Topic : SQL EDITOR
Subject name : RDBMS
Subject Code : CCP- 505
Duration : 50 min.
Teaching Aids : PPT
CCP505.43 1
Objectives:

On completion of this Period, you would be


able to know
 Use of SET COMMANDS
 Their SYNTAX

CCP505.43 2
Recap

We learn about
 How to use the Editor for Creating common Files

CCP505.43 3
Set Commands

 SQL provides a set of commands which help in


carrying out the following operations

CCP505.43 4
Set Commands (contd..)

 To change the default conditions under which


SQL plus works
 To change SQL plus system variables (set
commands)
 To prepare reports using data extracted from
database by SQL commands like “SELECT”

CCP505.43 5
Set Commands (contd..)

 The following Set commands have been set


up by Oracle - SQL*Plus . It is recommended
that users do not change them

CCP505.43 6
SQL Prompt

 The sqlplus system variable SQLPROMPT is


disabled by default
 If you enable it by using
SET SQLPROMPT 'prompt’
 The string 'prompt' appears in the output pane
after every command

CCP505.43 7
SQL Number

 The sqlplus system variable SQLNUMBER is set


to OFF by default.
 If you enable it by using

"SET SQLNUMBER ON",


 The line number prompt appears in the output
pane after a multi-lined command is sent

CCP505.43 8
Page Size
 The sqlplus system variable PAGESIZE is set to
its maximum by default
Set pagesize <number>
Ex: set pagesize 66

CCP505.43 9
Summary
We have discussed about
 Set commands
 syntax

CCP505.43 10
Quiz
1. To change SQL plus system variables
__________ Commands are used
a) DDL Commands
b) SET Commands
c) DML Commands
d) TCL Commands

CCP505.43 11
Frequently Asked Questions
1. What are the uses of SET COMMANDS and
write syntax of each

CCP505.43 12

Das könnte Ihnen auch gefallen