mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
13
reference/SQL_Oracle/main.cpp
Normal file
13
reference/SQL_Oracle/main.cpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#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];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue