summaryrefslogtreecommitdiffstats
path: root/doc/html/sql-overview-basicdatamanip-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql-overview-basicdatamanip-main-cpp.html')
-rw-r--r--doc/html/sql-overview-basicdatamanip-main-cpp.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/sql-overview-basicdatamanip-main-cpp.html b/doc/html/sql-overview-basicdatamanip-main-cpp.html
index 48cb4574a..6cfd77bff 100644
--- a/doc/html/sql-overview-basicdatamanip-main-cpp.html
+++ b/doc/html/sql-overview-basicdatamanip-main-cpp.html
@@ -43,8 +43,8 @@ body { background: #ffffff; color: black; }
*****************************************************************************/
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>&gt;
-#include &lt;<a href="qsqlquery-h.html">ntqsqlquery.h</a>&gt;
+#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
+#include &lt;<a href="tqsqlquery-h.html">tqsqlquery.h</a>&gt;
#include "../connection.h"
bool createConnections();
@@ -57,15 +57,15 @@ int main( int argc, char *argv[] )
int rows = 0;
if ( createConnections() ) {
- <a href="ntqsqlquery.html">TQSqlQuery</a> query( "INSERT INTO staff ( id, forename, surname, salary ) "
+ <a href="tqsqlquery.html">TQSqlQuery</a> query( "INSERT INTO staff ( id, forename, surname, salary ) "
"VALUES ( 1155, 'Ginger', 'Davis', 50000 )" );
- if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
+ if ( query.<a href="tqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="tqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
- query.<a href="ntqsqlquery.html#exec">exec</a>( "UPDATE staff SET salary=60000 WHERE id=1155" );
- if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
+ query.<a href="tqsqlquery.html#exec">exec</a>( "UPDATE staff SET salary=60000 WHERE id=1155" );
+ if ( query.<a href="tqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="tqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
- query.<a href="ntqsqlquery.html#exec">exec</a>( "DELETE FROM staff WHERE id=1155" );
- if ( query.<a href="ntqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="ntqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
+ query.<a href="tqsqlquery.html#exec">exec</a>( "DELETE FROM staff WHERE id=1155" );
+ if ( query.<a href="tqsqlquery.html#isActive">isActive</a>() ) rows += query.<a href="tqsqlquery.html#numRowsAffected">numRowsAffected</a>() ;
}
return ( rows == 3 ) ? 0 : 1;