7 messages in com.mysql.lists.plusplussql_create inserting data in table
FromSent OnAttachments
Thomas Schneider04 Jan 2004 10:48 
Sinisa Milivojevic05 Jan 2004 03:59 
Sinisa Milivojevic06 Jan 2004 03:12 
Thomas Schneider06 Jan 2004 06:52 
Sinisa Milivojevic06 Jan 2004 07:40 
Thomas Schneider07 Jan 2004 08:05 
Sinisa Milivojevic09 Jan 2004 04:38 
Subject:sql_create inserting data in table
From:Thomas Schneider (tho@flying-winnis.net)
Date:01/04/2004 10:48:39 AM
List:com.mysql.lists.plusplus

Hi I'm trying with following struct

sql_create_7(wpkn31500, 1, 7, Date,date, Time,time, double,last, double,tradesize, double,volume, double,bid, double,ask)

to insert data via this code

wpkn31500 row; row.set("2003-12-15","110101", NoKey.GetLetzterKurs(), NoKey.GetLetzterUmsatz(), NoKey.GetGesamtUmsatz(), NoKey.GetNachfrage(), NoKey.GetAngebot()); query.insert(row); cout << "Querry:" << query.preview() << endl; query.execute();

} catch (BadQuery er){ // handle any connection // or query errors that may come up cerr << "Error: " << er.error << endl; nRetCode = -1;

} catch (BadConversion er) { // we still need to cache bad conversions incase something goes // wrong when the data is converted into stock cerr << "Error: Tried to convert \"" << er.data << "\" to a \"" << er.type_name << "\"." << endl; nRetCode = -1; }

But I'm getting this error:

Error: You have an error in your SQL syntax near ':01:01,..... !? Is there a problem with the time format or the : "

Further I want to use the mentioned structure/code ito insert values in a lot of different tables how can I achieve that the values won't be inserted in the table wpkn31500 instead int the table xyz, abc, def ....