Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

SQL Oracle

 

Logging to Oracle

 

 

main.cpp

 

#include <Oracle/Oracle7.h>

 

using namespace Upp;

 

CONSOLE_APP_MAIN

{

    Oracle7 oracle;

    oracle.Open("scott/tiger@cxl"); // adjust for your Oracle server

    Sql sql(oracle);

    sql.Execute("select ENAME, JOB from EMP");

    while(sql.Fetch())

        Cout() << sql[0] << ": " << sql[1];

}

 

 

 

 

Do you want to contribute?