Display output in sql [message #456157] |
Sat, 15 May 2010 06:38 |
ShinTec
Messages: 8 Registered: May 2010
|
Junior Member |
|
|
Hello forum
having trouble displaying stuff on screen. It compiles the program successfully but just doesnt show any output Try using this (SET SERVEROUTPUT ON SIZE 4000) does nothing though. here my code
DECLARE
/*This program coverts a date from one fomat eg 1/31/10
into another format eg January 31,2010 */
/*declaring variables
assign a date that is in one format*/
EXAMPLE_DATE DATE := TO_DATE(' 1/31/06',' MM/DD/YY' );
/*finding the position of where the forward slash are*/
position_finder NUMBER := INSTR(EXAMPLE_DATE,'/');
BEGIN
/*Output example_date in the other format*/
DBMS_OUTPUT.PUT_LINE(TO_CHAR(EXAMPLE_DATE));
DBMS_OUTPUT.PUT_LINE(TO_CHAR(position_finder));
END;
any help would be much appreciated and thank you in advance
|
|
|
|
|