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 workJim Lynch26 Jan
  • Re: Can't seem to make templates workMartin Gallwey26 Jan
    • Re: Can't seem to make templates workJim Lynch26 Jan
  • Re: Can't seem to make templates workWarren Young28 Jan