Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

LIBPQ - FETCH INTO


  • From: "Michael GUIARD" <michael(at)nestor-tech(dot)com>
  • To: <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: LIBPQ - FETCH INTO
  • Date: Thu, 28 Jul 2005 15:55:42 +0200
  • Message-id: <017101c5937c$0f0f35d0$027ba8c0(at)NSTMike>

Hi !
 
first, thank you Magnus for your help :)
 
the use of cursors and fetch commands works fine for me.
Is it possible to know the result length (rows count) before any retreive ?
 
Another thing, now I'd like to retreive the results, using FETCH command, into a structure. For example I ask for selecting 2 fields, instead of using PQgetvalue(res, i, j), I'd like to retreive all fields in a C structure.
I saw the FETCH INTO command, I tried to use it with the PQexecParams but I did not succeeded in.
 
Is it possible ? if yes how ?
thanks
 
Mike
 
 
 
 


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group