Can't find the original message, so I'll reply here...
Cursors are used to basically present the data to logic, or maybe just
display the data. There are different kinds of cursors, some allow you to
freely move around a recordset, some allow you to only move forward through
data, some update the data when a write occurs...
I think there are 4 types of cursors, forward-only, dynamic, keyset...and
another which escapes me. You can think of cfquery basically only having a
forward-only cursor functionality. It presents a snapshot of the data, and
doesn't update. Personally I'd love to have access to cursors from CF, just
like ADO or TSQL (JDO is still being written I think).

Cursors are very resource intensive, but they are also very useful for
certain problems.

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 5:55 PM
Subject: Re: what can i use database cursors for


> There are some things you just can't do using set-based SQL.  That's
> when cursors come in.
>
> In MS SQL Server, cursors are incredibly slow.  Don't use them if you
> can think of an alternative that doesn't use cursors.  No matter how
> bad you think your alternate solution is, it's probably still a
> grillion times faster than using a cursor.
>
> ----- Original Message -----
> From: Kola Oyedeji <[EMAIL PROTECTED]>
> Date: Tuesday, June 18, 2002 12:57 pm
> Subject: what can i use database cursors for
>
> > Hi
> >
> > I've just been reading up on some database things i hardly use,
> > can anyone
> > tell me
> > if there are any advantages in using cursors? Is there any use for
> > them from
> > a web perspective?
> >
> > Cheers
> >
> > Kola
> >
> >
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to