![]() |
Formatting Query Results with SQL Plus![]() ![]() ![]() ![]() ![]()
SQL is the set of statements that all programs and users must use to access data within the ORACLE database. Application programs and ORACLE tools often allow users to access the database without directly using SQL but these applications in turn must use SQL when executing the users request. What is SQL*PLUS?, SQL"Plus is an Oracle product that provides an open window into the Oracle database, It provides developers and end users with the ability to interact directly with the database. SQL commands and PL/ SQL blocks are submitted in SQL 'Plus ro query, manipulate, or delete data in Oracle database. SQL*Plus commands are issued to control the SQL"Plus environment and to format the database information returned by the SQL commands. How to use SQL *PLUS SQL*Plus is used in the command line environment to control various features of Oracle session. The following sections decribes SQL*Plus and its many uses. Environment Commands The SQL*Plus environment commands define the system parameters that you work within, The set and show commands are used to control these parainter. The set command is used with an extensive number of options that control the interaction of the user's terminal with other SQL commands. The show command is used to display the current setting of the various parameters that have been established by the set command. The general syntax is. set parameter value These parameters establish the general look and feel of your SQL*Plus session. You establish the parameter value with the set commands. The following are the options that are to be used with session commands. Feedback n This defines the number of records returned by a query, Where the query selects atleast n records. Feedback on/off This determines whether the feedback display in on or off. The default is on.
Pause msg This displays a message after scrolling through one screen full of output when running reports. When the message is displayed the user responds by pressing enter. Pause on/off Thi's determines whether the pause feature is on or off. The default is on. Pagesize This sets the number of lines / pages to n. The default is 14 Linesize n This sets the number of characters per line to n. The default is 80 Heading on/off This determines if column headings are displayed. The default is on. Space This sets the number of spaces between columns. The maximum value is 10. The default is 80. Echo on/off This determines whether each command in a text file is displayed on the screen as it is being executed. The default is off Verify on/off This determines whether each command in a SQL statement is displayed before and after SQL*Plus substitution parameters are replaced by actual values.
|
|
Domain NamesSQL Database Management Systems Relational Database Management System Properties of RDBMS Client Server Computing Oracle Relational Database Database Structure and Space Management SQL Data Types How to Use Data Types? What is Operators and Conditions Character OperatorsOperator Precedence Data Retrieval Using SQL Plus SQL Data Definitions Data Retrieval Using Select SQL Operator Precedence Selecting Rows and Columns The Group by Clause
Having Clause Union, Union all, Intersact and Minus Commands Playing with Numbers Date Functions Example of Date Arithmetic Working with Null Values
Joining Tables and Subqueries Views Synonyms Indexes Clusters Sequences Formatting Query Results with SQL Plus Data Integrity The Optimizer How Oracle Optimizes SQL Statements Evaluating Expression and ConditionsOptimization Hints PL-SQL PL-SQL Architecture Error Reporting Functions Character Functions Composite Data Types PL-SQL Structures How to use PL-SQL Structures Normalization Operator Precedence Cursor Error Handling Database Triggers Types of Triggers Locking Sub Programs Packages New and Improved Data Types Improved Select Statement Advanced Quering Improved Scalability Improved Performance Via Partitioning Object Relational Features Heterogeneous Data Access Improved Security Administration New Data Types Improved Select Statement Changes to the Select Statement Improved Scalability Data Partitioning Oriented Toward Objects Character Functions Creating Object Types Created Nested Tables Oracle8 and Distributed Database Oracle8 Database Management and Security Distributed Database Invoking Export Invoking ImportWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |