Hey,
is there an easy way to change 1 field in every row of a table to the same
value?
i'm having some trouble doeing this :(
and the example doesn't exmplain alot so i dun fully understand it
right now i'm trying with
Connection con(use_exceptions);
con.connect(db,dbhost,dblogin,dbpass);
Query query = con.query();
query << "select * from servers";
Result res = query.store();
Result::iterator i;
for (i = res.begin(); i != res.end(); i++) {
servers row = res[0];
servers row2 = row;
row.spliton = 1;
query.update(row2, row);
query.execute();
}