From: Warren Young Date: January 28 2013 8:58pm Subject: Re: Can't seem to make templates work List-Archive: http://lists.mysql.com/plusplus/9551 Message-Id: <5106E681.6040809@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.