Download presentation
Presentation is loading. Please wait.
Published byJunior McLaughlin Modified over 9 years ago
1
Oracle PL/SQL SQL*Plus
2
EDIT Opens notepad with the buffer contents To use type: –Edit –Ed Opens notepad with the buffer contents To use type: –Edit –Ed
3
Edit commands List / L1 change/old/new i order by field List / L1 change/old/new i order by field
4
SAVE To save the buffer to file type Save –Save d:\a.sql create –Save d:\a.sql replace –Save d:\a.sql append Also from the file menu To save the buffer to file type Save –Save d:\a.sql create –Save d:\a.sql replace –Save d:\a.sql append Also from the file menu
5
Get and Start Get - to the buffer Start - execute script Spool – from the file menu –Spools the screen to file –End by spool off command Get - to the buffer Start - execute script Spool – from the file menu –Spools the screen to file –End by spool off command
6
Output format select * from employee Column last_name heading lname Line break: –column last_name heading 'last | name‘ Width –Column first_name format a8 select * from employee Column last_name heading lname Line break: –column last_name heading 'last | name‘ Width –Column first_name format a8
7
CLEAR CLEAR COLUMNS (CL COL) CLEAR BUFFER (CL BUFF) CLEAR SCREEN (CL SCR) CLEAR COLUMNS (CL COL) CLEAR BUFFER (CL BUFF) CLEAR SCREEN (CL SCR)
8
SET COMMANDS SET PAU[SE] {ON | OFF} SET LIN[ESIZE] NUMBER SET HEA[DING] {ON | OFF} SET ECHO {ON | OFF} SET SERVEROUTPUT {ON | OFF} SET PAU[SE] {ON | OFF} SET LIN[ESIZE] NUMBER SET HEA[DING] {ON | OFF} SET ECHO {ON | OFF} SET SERVEROUTPUT {ON | OFF}
9
Define Select * from employee where job_id=669 Define jid=669 Select * from employee where job_id=‘&jid’ Undefine jid Accept jid 669 Select * from employee where job_id=669 Define jid=669 Select * from employee where job_id=‘&jid’ Undefine jid Accept jid 669
10
More commands Prompt text variable fx number begin :fx :=669; end; select * from employee where job_id=:fx; Print fx Prompt text variable fx number begin :fx :=669; end; select * from employee where job_id=:fx; Print fx
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.