title: if (select count(column) from table) > 0 then
body: <p>I need to check a condition. i.e:</p>
  
  <pre><code>if (condition)&gt; 0 then
    update table
  else do not update
  end if
  </code></pre>
  
  <p>Do I need to store the result into a variable using select into?</p>
  
  <p>e.g:</p>
  
  <pre><code>declare valucount integer
  begin
    select count(column) into valuecount from table
  end
  if valuecount &gt; o then
    update table
  else do 
    not update
  </code></pre>