MySQL Forums :: Connector/Arduino :: inserting a string variable


Advanced Search

Re: inserting a string variable
Posted by: Steve Spence ()
Date: September 21, 2014 12:18PM

to get from String to string, you might need this!

char * stringTwo[10];
stringTotal.toCharArray(stringTwo[0], 10);

sprintf(buf, "INSERT INTO database.table VALUES ('%s')", stringTwo[0]);

Options: ReplyQuote


Subject Views Written By Posted
inserting a string variable 1907 Steve Spence 09/21/2014 08:49AM
Re: inserting a string variable 980 Steve Spence 09/21/2014 08:54AM
Re: inserting a string variable 920 Steve Spence 09/21/2014 12:18PM


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.