Hi guys,
I want to execute an SQL script based on a condition.... I am writing a sample requirement...
num = {some value}
if(num == 0)
then
cat>> test.sql <<FIN
select * from table_a
FIN
else
cat>> test.sql << FIN
select * from table_b
FIN
fi
This is what i wish to implement... I have implemented this in my code but seems to give and error in this part "<<FIN" (unmatched << found)...
Running the code only with the script that is without the conditional if statement no error is generated...
Has anyone encountered anything like this... plz suggest something... its very urgent for me.. kindly help....