Generate spool in based on condition in Oracle sql -
i need write oracle sql script based on condition.
like user has type 'y' or 'n' if types 'y' need
accept gen prompt 'enter y if want generate spool' default 'n' spool c:\a.spl select cust_id no acc_master account_no='&crn' , branch_no='&brn'; select * lid=no; select * b lid=no; select * c lid=no; spool off;
if user types 'n' nothing needs selected.
please advise
if use bash statement ("if-fi") if use linux, or statement "if" windows work around it.
Comments
Post a Comment