1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
.\" msqlStoreResult - Store results of a query
.\" Copyright (c) 1996 Martin Schulze <joey@office.individual.net>
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc.,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.\"
.\" This manual page is written especially for Debian GNU/Linux.
.\"
.TH msqlStoreResult 3 "4 Aug 1996" "Mini SQL" "mSQL Programmer's Manual"
.SH NAME
msqlStoreResult \- Store results of a query
.SH SYNOPSYS
.nf
.B #include <msql.h>
.sp
.B m_result *msqlStoreResult();
.fi
.SH DESCRIPTION
Data returned by a SELECT query must be stored before another query is
submitted or it will be removed from the internal API buffers. Data
is stored using the
.BR msqlStoreResult() .
The result handle is a pointer to a
.I m_result
structure and is passed to other API routines when access to the data
is required. Once the result handle is allocated, other queries may
be submitted. A program may have many result handles active
simultaneously.
The
.I m_result
structure is defined in
.I <msql.h>
as follows:
.RS
.nf
.ta 8n 16n 32n
typedef struct result_s {
m_data *queryData,
*cursor;
m_fdata *fieldData,
*fieldCursor;
int numRows,
numFields;
} m_result;
.fi
.RE
.SH "RETURN VALUE"
On success thefunction returns a result handle to a filled
datastructure.
.SH "SEE ALSO"
.BR msqlQuery (3),
.BR msqlFreeResult (3),
.BR msqld (8),
.BR msql (5).
|