diff options
author | Michele Calgaro <[email protected]> | 2024-05-28 10:17:01 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-05-28 10:17:01 +0900 |
commit | 5fffa30386502b5423e45c2ed5e6af756b11c7b4 (patch) | |
tree | fa17e10b048e8e13433b861cbe98cf895b2324c7 /doc/html/sql-overview-basicbrowsing2-main-cpp.html | |
parent | 04913ce7a46fd027856e83a96205fdc388742a19 (diff) | |
download | tqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.tar.gz tqt3-5fffa30386502b5423e45c2ed5e6af756b11c7b4.zip |
Rename nt* sql related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/sql-overview-basicbrowsing2-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-basicbrowsing2-main-cpp.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/sql-overview-basicbrowsing2-main-cpp.html b/doc/html/sql-overview-basicbrowsing2-main-cpp.html index 62d8d5d2c..1c14d58aa 100644 --- a/doc/html/sql-overview-basicbrowsing2-main-cpp.html +++ b/doc/html/sql-overview-basicbrowsing2-main-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } *****************************************************************************/ #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 <<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>> +#include <<a href="tqsqlquery-h.html">tqsqlquery.h</a>> #include "../connection.h" int main( int argc, char *argv[] ) @@ -52,19 +52,19 @@ int main( int argc, char *argv[] ) <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE ); if ( createConnections() ) { - <a href="ntqsqldatabase.html">TQSqlDatabase</a> *oracledb = TQSqlDatabase::<a href="ntqsqldatabase.html#database">database</a>( "ORACLE" ); + <a href="tqsqldatabase.html">TQSqlDatabase</a> *oracledb = TQSqlDatabase::<a href="tqsqldatabase.html#database">database</a>( "ORACLE" ); // Copy data from the oracle database to the ODBC (default) // database - <a href="ntqsqlquery.html">TQSqlQuery</a> target; - <a href="ntqsqlquery.html">TQSqlQuery</a> query( "SELECT id, name FROM people", oracledb ); + <a href="tqsqlquery.html">TQSqlQuery</a> target; + <a href="tqsqlquery.html">TQSqlQuery</a> query( "SELECT id, name FROM people", oracledb ); int count = 0; - 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>(); + if ( query.<a href="tqsqlquery.html#isActive">isActive</a>() ) { + while ( query.<a href="tqsqlquery.html#next">next</a>() ) { + target.<a href="tqsqlquery.html#exec">exec</a>( "INSERT INTO people ( id, name ) VALUES ( " + + query.<a href="tqsqlquery.html#value">value</a>(0).toString() + + ", '" + query.<a href="tqsqlquery.html#value">value</a>(1).toString() + "' )" ); + if ( target.<a href="tqsqlquery.html#isActive">isActive</a>() ) + count += target.<a href="tqsqlquery.html#numRowsAffected">numRowsAffected</a>(); } } } |