Home » SQL & PL/SQL » SQL & PL/SQL » Strange. (please help : urgent)
Strange. (please help : urgent) [message #38944] Wed, 29 May 2002 20:42 Go to next message
diaz
Messages: 58
Registered: October 2001
Member
Hi,
Please help me out here..
I have this code..
I don't know what's wrong with this query..
why does it not giving any result
while trying it on the sql*plus .. the result appears!

please... please.. help

declare
thiseop varchar(6):='200110';
idpayment number(9);
begin
dbms_output.put_line ('abc');


select distinct(parent_payid) into idpayment from payment
where msisdn='811100115' and to_char(paydate,'YYYYMM')=thiseop;


dbms_output.put_line ('def');
dbms_output.put_line (idpayment);

exception
when no_data_found then
dbms_output.put_line ('xyz');

when others then
dbms_output.put_line (sqlerrm);

end;

the idpayment neither the sqlerror won't appear...!

please.. help me
Re: Strange. (please help : urgent) [message #38945 is a reply to message #38944] Wed, 29 May 2002 21:43 Go to previous message
Vikas Gupta
Messages: 115
Registered: February 2002
Senior Member
Pls. check the following:

Do you get the output : 'def' on the screen ?
Have you "set serveroutput on" in sql plus ?
Previous Topic: PL/SQL prompting?
Next Topic: How to know that a field is empty ???
Goto Forum:
  


Current Time: Wed Apr 24 20:57:25 CDT 2024