DBMS_OUTPUT.GET_LINES : DBMS_OUTPUT « PL SQL Programming « Oracle PL/SQL Tutorial

Oracle PL/SQL Tutorial
1. Introduction
2. Query Select
3. Set
4. Insert Update Delete
5. Sequences
6. Table
7. Table Joins
8. View
9. Index
10. SQL Data Types
11. Character String Functions
12. Aggregate Functions
13. Date Timestamp Functions
14. Numerical Math Functions
15. Conversion Functions
16. Analytical Functions
17. Miscellaneous Functions
18. Regular Expressions Functions
19. Statistical Functions
20. Linear Regression Functions
21. PL SQL Data Types
22. PL SQL Statements
23. PL SQL Operators
24. PL SQL Programming
25. Cursor
26. Collections
27. Function Procedure Packages
28. Trigger
29. SQL PLUS Session Environment
30. System Tables Data Dictionary
31. System Packages
32. Object Oriented
33. XML
34. Large Objects
35. Transaction
36. User Privilege
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL/SQL Tutorial » PL SQL Programming » DBMS_OUTPUT 
24. 22. 10. DBMS_OUTPUT.GET_LINES
SQL>
SQL>
SQL> SET SERVEROUTPUT ON
SQL> DECLARE
  2    v_Data      DBMS_OUTPUT.CHARARR;
  3    v_NumLines  NUMBER;
  4  BEGIN
  5    -- Enable the buffer first.
  6    DBMS_OUTPUT.ENABLE(1000000);
  7
  8    DBMS_OUTPUT.PUT_LINE('Line One');
  9    DBMS_OUTPUT.PUT_LINE('Line Two');
 10    DBMS_OUTPUT.PUT_LINE('Line Three');
 11
 12    v_NumLines := 3;
 13
 14    DBMS_OUTPUT.GET_LINES(v_Data, v_NumLines);
 15
 16    FOR v_Counter IN 1..v_NumLines LOOP
 17      DBMS_OUTPUT.put_line(v_Data(v_Counter));
 18    END LOOP;
 19  END;
 20  /
Line One
Line Two
Line Three

PL/SQL procedure successfully completed.

SQL>
24. 22. DBMS_OUTPUT
24. 22. 1. Call user defined function in DBMS_OUTPUT.PUT_LINE
24. 22. 2. PL/SQL Block Showing the Use of the dbms_output.put_line Procedure
24. 22. 3. Output NUMBER with dbms_output.put_line Procedure
24. 22. 4. Output string with dbms_output.put_line Procedure
24. 22. 5. Using two single-quotes print the string correctly
24. 22. 6. New quoting syntax is q'[ ... ]' where the [] is the user-defined delimiter.
24. 22. 7. Use the LOWER function to in DBMS_OUTPUT.PUT_LINE
24. 22. 8. Use the ROUND function in PL/SQL
24. 22. 9. DBMS_OUTPUT.CHARARR
24. 22. 10. DBMS_OUTPUT.GET_LINES
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.