Does someone know if there is pre-processor for C/C++ in conjunction with Oracle that would allow me to write C or C++ code similar to:
void populateTableList(GuiList* tableList) {
for users in ( select table_name,
owner,
tablespace_name
from dba_tables)
{
tableList -> addRow(
users.table_name,
users.owner,
users.tablespace_name);
}
}
The main features I am looking for are
quasi-automatic declaration/definition of the selected values (here:
users.table_name
,users.owner
andusers.tablespace_name
) similar to thePL/SQL for loop statement
andan automatic fetch until finished mechanism (without explicitely calling a
stmt.fetch()
procedure or something) anda validation of the correctnes of the sql statement at compile time.
Is there such a thing?