From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Quick Oracle Connection ...
Date: Mon, 15 Jan 2018 14:20:39 +0100
Date: 2018-01-15T14:20:39+01:00 [thread overview]
Message-ID: <p3i9r7$d2h$1@gioia.aioe.org> (raw)
In-Reply-To: 2fca0397-df30-4f36-8b26-293971134007@googlegroups.com
On 15/01/2018 13:22, tonikaparallele@gmail.com wrote:
> Thank you so much, Dimitry! In addition to my other activities, it
> seems too time-consuming to understand everything to do some simple
> database queries.
You mean SQL, or how to create connection, prepare statement, bind
arguments, walk the result set?
> Is there any example programs?Unfortunately I have little experience
> with communication ada-oracle.
It is no different from how ODBC is used in other programming languages,
a bit simpler because the environment, connection and statement objects
are controlled, so there is less to care about releasing handles.
There is a test program that calls all API operations, there are many
Ada application programs that use ODBC. And you can easily translate C
ODBC sample code.
It quite straightforward:
1. Declare ODBC_Environment
2. Declare ODBC_Connection
3. Connect to the RDBMS
4. Declare ODBC_Command
5. Prepare (set a SQL statement)
6. Bind parameters, if any
7. Execute the command
8. Fetch the result set
9. Get_Data for a column of the fetched row in the result set, if any
repeat 9 if many columns
repeat 8 if many rows
repeat 6 to execute same statement anew
repeat 5 to execute another statement
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2018-01-15 13:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 9:26 Quick Oracle Connection tonikaparallele
2018-01-15 9:59 ` gautier_niouzes
2018-01-15 10:08 ` tonikaparallele
2018-01-15 10:50 ` Dmitry A. Kazakov
2018-01-15 12:22 ` tonikaparallele
2018-01-15 13:20 ` Dmitry A. Kazakov [this message]
2018-01-15 14:51 ` gautier_niouzes
2018-01-17 20:52 ` tonikaparallele
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox