| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | January 28 2013 8:58pm |
| Subject: | Re: Can't seem to make templates work | ||
| View as plain text | |||
On 1/26/2013 15:22, Jim Lynch wrote: > Query query = con.query (); > > string sql = "update cameras set last_image = %0q: > where camera_id = %1:"; > > query << sql; FYI, you can combine these three lines into one: Query query = con.query("update cameras...etc.") You still have to call query.parse() after this.
| Thread | ||
|---|---|---|
| • Can't seem to make templates work | Jim Lynch | 26 Jan 2013 |
| • Re: Can't seem to make templates work | Martin Gallwey | 26 Jan 2013 |
| • Re: Can't seem to make templates work | Jim Lynch | 26 Jan 2013 |
| • Re: Can't seem to make templates work | Warren Young | 28 Jan 2013 |
