diff options
Diffstat (limited to 'doc/html/sql-overview-insert-main-cpp.html')
-rw-r--r-- | doc/html/sql-overview-insert-main-cpp.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/sql-overview-insert-main-cpp.html b/doc/html/sql-overview-insert-main-cpp.html index a56d669af..42ddf63a7 100644 --- a/doc/html/sql-overview-insert-main-cpp.html +++ b/doc/html/sql-overview-insert-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="qsqlcursor-h.html">ntqsqlcursor.h</a>> +#include <<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>> +#include <<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>> #include "../connection.h" int main( int argc, char *argv[] ) @@ -53,17 +53,17 @@ int main( int argc, char *argv[] ) if ( createConnections() ) { int count = 0; - <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "prices" ); + <a href="tqsqlcursor.html">TQSqlCursor</a> cur( "prices" ); <a href="ntqstringlist.html">TQStringList</a> names = TQStringList() << "Screwdriver" << "Hammer" << "Wrench" << "Saw"; int id = 20; for ( TQStringList::Iterator name = names.<a href="ntqvaluelist.html#begin">begin</a>(); name != names.<a href="ntqvaluelist.html#end">end</a>(); ++name ) { - <a href="ntqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="ntqsqlcursor.html#primeInsert">primeInsert</a>(); - buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "id", id ); - buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "name", *name ); - buffer-><a href="ntqsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id ); - count += cur.<a href="ntqsqlcursor.html#insert">insert</a>(); + <a href="tqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="tqsqlcursor.html#primeInsert">primeInsert</a>(); + buffer-><a href="tqsqlrecord.html#setValue">setValue</a>( "id", id ); + buffer-><a href="tqsqlrecord.html#setValue">setValue</a>( "name", *name ); + buffer-><a href="tqsqlrecord.html#setValue">setValue</a>( "price", 100.0 + (double)id ); + count += cur.<a href="tqsqlcursor.html#insert">insert</a>(); id++; } } |