summaryrefslogtreecommitdiffstats
path: root/doc/html/sql-overview-update-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql-overview-update-main-cpp.html')
-rw-r--r--doc/html/sql-overview-update-main-cpp.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/sql-overview-update-main-cpp.html b/doc/html/sql-overview-update-main-cpp.html
index c5bf67f0c..b213e4afc 100644
--- a/doc/html/sql-overview-update-main-cpp.html
+++ b/doc/html/sql-overview-update-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="qsqlcursor-h.html">ntqsqlcursor.h</a>&gt;
+#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
+#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
@@ -52,14 +52,14 @@ int main( int argc, char *argv[] )
<a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
if ( createConnections() ) {
- <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
- cur.<a href="ntqsqlcursor.html#select">select</a>( "id=202" );
- if ( cur.<a href="ntqsqlquery.html#next">next</a>() ) {
- <a href="ntqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="ntqsqlcursor.html#primeUpdate">primeUpdate</a>();
- double price = buffer-&gt;<a href="ntqsqlrecord.html#value">value</a>( "price" ).toDouble();
+ <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
+ cur.<a href="tqsqlcursor.html#select">select</a>( "id=202" );
+ if ( cur.<a href="tqsqlquery.html#next">next</a>() ) {
+ <a href="tqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="tqsqlcursor.html#primeUpdate">primeUpdate</a>();
+ double price = buffer-&gt;<a href="tqsqlrecord.html#value">value</a>( "price" ).toDouble();
double newprice = price * 1.05;
- buffer-&gt;<a href="ntqsqlrecord.html#setValue">setValue</a>( "price", newprice );
- cur.<a href="ntqsqlcursor.html#update">update</a>();
+ buffer-&gt;<a href="tqsqlrecord.html#setValue">setValue</a>( "price", newprice );
+ cur.<a href="tqsqlcursor.html#update">update</a>();
}
}