MySQL Forums
Forum List  »  Connector/Arduino

UPDATE not working
Posted by: Steve Spence
Date: May 04, 2014 04:47AM

My query is:

const char UPDATE_DATA[] = "UPDATE spspence_jobqueue.currentstatus SET pinID = pinValue WHERE deviceID = deviceID";

I'm calling it as such:

char pinID[6];

pinID = "pin_4"; // could be other values, pin_5, pin_6, all valid column names

my_conn.cmd_query(UPDATE_DATA);

get error:

Error: 47 = Unknown column 'pinID' in 'field list'.

Options: ReplyQuote


Subject
Views
Written By
Posted
UPDATE not working
1948
May 04, 2014 04:47AM
1136
May 07, 2014 08:39AM
1111
May 07, 2014 09:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.