TEXT_IO.PUT
built-in procedureThis procedure concatenates the supplied data to the current line of an open
file, or outputs it to the Interpreter. Notice that there are several TEXT_IO.PUT
procedures, which accept VARCHAR2
, DATE
, NUMBER
,
and PLS_INTEGER
values for item
. All of the
procedures (except VARCHAR2
) convert the supplied data to a character
string. No newline character (that is, carriage return) added.
PROCEDURE TEXT_IO.PUT
(file file_type,
item VARCHAR2);
PROCEDURE TEXT_IO.PUT
(item VARCHAR2);
PROCEDURE TEXT_IO.PUT
(itemDATE);
PROCEDURE TEXT_IO.PUT
(file file_type,
item DATE);
PROCEDURE TEXT_IO.PUT
(filefile_type,
item NUMBER);
PROCEDURE TEXT_IO.PUT
(item NUMBER);
PROCEDURE TEXT_IO.PUT
(file file_type,
item PLS_INTEGER);
PROCEDURE TEXT_IO.PUT
(itemPLS_INTEGER);
Parameter |
Description |
|
A variable that specifies an open file. |
|
A variable to be used as a buffer. |
/*
** Write a line to a specified output file, create
** a newline, then write another line to the output
** file.
*/
TEXT_IO.PUT(out_file, SYSDATE);
TEXT_IO.NEW_LINE(out_file);
TEXT_IO.PUT('Processing ends...');
About the TEXT_IO
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.