diff options
Diffstat (limited to 'doc/html/sql-overview-basicbrowsing2-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-basicbrowsing2-main-cpp.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/sql-overview-basicbrowsing2-main-cpp.html b/doc/html/sql-overview-basicbrowsing2-main-cpp.html index 44b840099..62d8d5d2c 100644 --- a/doc/html/sql-overview-basicbrowsing2-main-cpp.html +++ b/doc/html/sql-overview-basicbrowsing2-main-cpp.html @@ -42,29 +42,29 @@ body { background: #ffffff; color: black; } ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qsqldatabase-h.html">qsqldatabase.h</a>> -#include <<a href="qsqlquery-h.html">qsqlquery.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>> +#include <<a href="qsqlquery-h.html">ntqsqlquery.h</a>> #include "../connection.h" int main( int argc, char *argv[] ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv, FALSE ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE ); if ( createConnections() ) { - <a href="qsqldatabase.html">TQSqlDatabase</a> *oracledb = TQSqlDatabase::<a href="qsqldatabase.html#database">database</a>( "ORACLE" ); + <a href="ntqsqldatabase.html">TQSqlDatabase</a> *oracledb = TQSqlDatabase::<a href="ntqsqldatabase.html#database">database</a>( "ORACLE" ); // Copy data from the oracle database to the ODBC (default) // database - <a href="qsqlquery.html">TQSqlQuery</a> target; - <a href="qsqlquery.html">TQSqlQuery</a> query( "SELECT id, name FROM people", oracledb ); + <a href="ntqsqlquery.html">TQSqlQuery</a> target; + <a href="ntqsqlquery.html">TQSqlQuery</a> query( "SELECT id, name FROM people", oracledb ); int count = 0; - if ( query.<a href="qsqlquery.html#isActive">isActive</a>() ) { - while ( query.<a href="qsqlquery.html#next">next</a>() ) { - target.<a href="qsqlquery.html#exec">exec</a>( "INSERT INTO people ( id, name ) VALUES ( " + - query.<a href="qsqlquery.html#value">value</a>(0).toString() + - ", '" + query.<a href="qsqlquery.html#value">value</a>(1).toString() + "' )" ); - if ( target.<a href="qsqlquery.html#isActive">isActive</a>() ) - count += target.<a href="qsqlquery.html#numRowsAffected">numRowsAffected</a>(); + if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) { + while ( query.<a href="ntqsqlquery.html#next">next</a>() ) { + target.<a href="ntqsqlquery.html#exec">exec</a>( "INSERT INTO people ( id, name ) VALUES ( " + + query.<a href="ntqsqlquery.html#value">value</a>(0).toString() + + ", '" + query.<a href="ntqsqlquery.html#value">value</a>(1).toString() + "' )" ); + if ( target.<a href="ntqsqlquery.html#isActive">isActive</a>() ) + count += target.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>(); } } } |