Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Declare Cnt Number;

Begin
Select Count(*) into cnt from marksheet where class='10';

IF cnt>0 Then
Spool C:\Report_10.xls
Select StudID,Score From Marksheet Where Class='10' and Grade='Pass';
Spool Off;
Else
Spool <filename>
-- Other Conditions
Spool Off;
End If;
END;


Error : line 6
encountered the symbol "c" when expecting one of the following
:= . ( @ % ;

I need Report in file like

Select Score From Marksheet Where Class='10' and Grade='Pass';

Studid Score
1002 90
1008 95

If there is alternate option other than Spool Please do suggest. I have tried this code in Oracle SQL-developer.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900