[unixODBC-support] ODBC Cursors

Paul Mahon dufflebunk at dufflebunk.homeip.net
Tue Sep 28 21:31:12 BST 2004

I am using unixODBC. The following link is to the code I'm playing with.
It's based on a chunk I found on the MSDN site. Lacking any
comprehension of how they are supposed to work the code likely doesn't
make any sense at all. All it should do is go through the table Bar, add
1 to the second column (B) and add 2 to the third column (C). I could do
this with SQL, but it's an example program so I can understand how to
use cursors for a much more complex program.


The program fails on the first SQLFetchScroll.

On Tue, 2004-28-09 at 20:53 +0100, Nick Gorham wrote:
> Paul Mahon wrote:
> > I'm trying to write a program which uses cursors to update rows of a
> > table, but I'm having no luck getting them to work. Does anyone have a
> > simple example of how to use cursors to update? Or documentation? The
> > MSDN ODBC docs did not help.
> Are you unsing unixODBC ? if so can you let me know just what you are 
> doing (code could help) as the cursor lib isn't the most used part of 
> the project, and there could be problems in there...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20040928/8a34f255/attachment.bin>

More information about the unixODBC-support mailing list