title: How to show sql result on server console
body: <p>In <strong>Rails v2.3</strong> , <strong>Ruby 1.8</strong>, if I run a <strong>sql statement</strong> with following code in my model class:</p>
  
  <pre><code>ActiveRecord::Base.connection.execute("select count(*) from cars;")
  </code></pre>
  
  <p><strong>How can I show the query result in server console?</strong></p>
  
  <p>I tried :</p>
  
  <pre><code>rslt = ActiveRecord::Base.connection.execute("select count(*) from cars;")
  p rslt
  </code></pre>
  
  <p>but it only returns me "MySQL result object" on the server console, not the exact result.</p>