Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 Oracle PL/SQL: SQL*Plus Display commands Jump to:  
Category: >> Oracle PL/SQL >> SQL*Plus Display commands Bookmark and Share

<< lastnext >>

Snippet Name: SQL*Plus Display commands

Description: SQL*Plus has several important display commands. Here are some examples.

Also see:
» SQL*Plus Configuration
» SQL*Plus SQL Prompt
» SQL*Plus Spool Command
» SQL*Plus Describe
» SQL*Plus connect
» SQL*Plus formatting

Comment: (none)

Language:
Highlight Mode: PLSQL
Last Modified: March 07th, 2009

SELECT object_name, created
FROM user_objects
WHERE ROWNUM < 11;
 
 
clear screen
 
short form -
cl scr
 
 
Column Separators 
SET colsep ','
 
SELECT *
FROM user_tables
WHERE ROWNUM < 5
/
 
 
 
Display Headers 
SELECT * FROM user_tables;
 
SET head off
 
SELECT * FROM user_tables;
 
SET head ON 
 
 
 
 
Line Size SET LINESIZE <integer> 
SELECT text
FROM all_source
WHERE ROWNUM < 11;
 
SET linesize 121
 
SELECT text
FROM all_source
WHERE ROWNUM < 11; 
 
 
SELECT COUNT(*)
FROM all_objects
WHERE SUBSTR(object_name,1,1) BETWEEN 'A' AND 'W';
 
SET timing ON
 
 
 
envoke editor TO edit previous command
 
ed


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 333 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?