Вы находитесь на странице: 1из 16

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.44 1
Objectives:

On completion of this period ,The student will


be able to understand
 Use of SET COMMANDS
 Their SYNTAX

CCP505.44 2
Recap

We have discussed about some of


 SET commands
 Their Syntax

CCP505.44 3
Set Commands

 SQL provides a set of commands which help in


carrying out the following operations

CCP505.44 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.44 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.44 6
Ttitle
 To display page number at the top of page along
with title

Example:-
SQL> ttitle left ‘hello’ right ‘page:’ sql.pno;

CCP505.44 7
Tab

 The sqlplus system variable TAB is set to OFF by


default
 If you enable it by using "SET TAB ON"

CCP505.44 8
New Page

 This SET COMMAND is used to set the number


of lines between the beginning of each page and
the title

Set NEWPAGE <NO. OF LINES>

CCP505.44 9
Line Size

 Linesize is used to print on a wide paper and


align a title
Set LINESIZE<NO.OF LINES>

CCP505.44 10
Space

 This SET COMMAND is used to set the spaces


between the columns
SET SPACE<NO.OF SPACES>
 Ex: set space 3

CCP505.44 11
Set Pause On

 This set command makes screen display stop in


between pages of display
SQL>Set pause on

CCP505.44 12
Feedback On

 This set command makes feed back on


 Set feedback on

CCP505.44 13
Summary
We have discussed about
 Set commands
 syntax

CCP505.44 14
Quiz
1. _____________ SET COMMAND is used to
set the number of lines between the beginning
of each page and the title
a) New page
b) Page size
c) Line size
d) Space

CCP505.44 15
Frequently Asked Questions

1. Write about the SET Commands


a) Space
b) Line Size
c) Feed Back

CCP505.44 16

Вам также может понравиться