请问各位高人,我控制输出的格式,但为什么加个if判断就总是报错吖?到底是哪里错了吖?这里能用loop吗?
小弟是新手吖,求各位大师指点吖~~代码如下: if trans_date between start_date and end_date
then
output(' <tr>');
output(' <td align=left><font size=2>' || cl.ORGANIZATION_CODE ||
'</font></td>');
output(' </tr>');elsif trans_date not between start_date and end_date
output(' <tr><TR Bgcolor=#00FFFF>');
output(' <td align=left><font size=2> ' || cl.ORGANIZATION_CODE ||
'</font></td>');
output(' </tr>');end if;
不知道是不是这个原因
output(' <tr>');
output(' <td align=left><font size=2>' || cl.ORGANIZATION_CODE || '</font></td>');
output(' </tr>');
elsif trans_date NOT BETWEEN start_date AND end_date output(' <tr><TR Bgcolor=#00FFFF>');
output(' <td align=left><font size=2> ' || cl.ORGANIZATION_CODE || '</font></td>');
output(' </tr>');
END IF;