How to use Subquery Select statement as IF condition?
<pre><code>if 0 &lt;&gt; (select count(*) from sung where hakbun = 1)then
cnt := cnt+1;
end if;
</code></pre>

<p>I tried to above source and Oracle shows blow error</p>

<blockquote>
  <p>PLS-00405: subquery not allowed in this context</p>
</blockquote>

<p>What am i doing wrong?</p>