<?xml version="1.0" encoding="windows-1252"?>
<node id="465030" title="Re: Select COUNT in MySQL" created="2005-06-09 05:11:37" updated="2005-08-14 01:01:20">
<type id="11">
note</type>
<author id="275605">
dbwiz</author>
<data>
<field name="doctext">
&lt;p&gt;Alternatively, you may use &lt;i&gt;selectrow_array&lt;/i&gt;
to get a single value.&lt;/p&gt;        
&lt;code&gt;
my ($crows) = $dbh-&gt;selectrow_array($sqlc);
print $crows;
&lt;/code&gt;
&lt;p&gt;Notice that &lt;code&gt;$crows&lt;/code&gt; was declared
in list context, to avoid [id://182023|side effects].&lt;/p&gt;</field>
<field name="root_node">
464996</field>
<field name="parent_node">
464996</field>
</data>
</node>
