Re: Another PDO ?

Jim Giner <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <[email protected]>
On 9/10/2012 10:49 AM, Bastien Koert wrote:
> On Mon, Sep 10, 2012 at 9:48 AM, Jim Giner <[email protected]> wrote:
>> Reading up on the pdostatement class.  Wondering what the intent of the
>> columnCount function is.  I mean, aren't the number of columns in a result
>> known when you write the query?  Granted, you might have some very complex
>> query that you may not know the number, but for most queries you will know
>> the columns you are expecting.  So - what am I not seeing?
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> It might be for those cases where you run a select * from ...
>
But - again - one already knows how many fields are in that table when 
one writes the query...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.