|
Posted by Jerry Stuckle on 04/03/07 13:40
Simon Stienen wrote:
> On 2007-04-03 06-46-03, Jerry Stuckle wrote:
>>> a) Why isn't the query represented by a QUERY object?
>> Because it's called a db object. Maybe my description was confusing.
>> The query need not be a SELECT. It could be an INSERT, CREATE TABLE or
>> anything else.
>
> Oh... So queries are always SELECTs and INSERTs etc. are not queries...
> thanks for teaching me *that*, as this is really something completely new
> for.
>
> And good to know that you automagically know what HIS DB object does and
> what not.
It's pretty obvious from the code what his object does. I've used
similar code may times before.
The difference is you're thinking of it as a db connection with a
separate result object. That's a very valid way of doing things.
However, his code is a little different (and just as valid). He sees
the query as a method of the object. Each way has its advantages and
disadvantages.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|