MySQL Forums
Forum List  »  Connector/C++

Re: Declaring user variable into database using mysql connector c++
Posted by: Armand Moutchiho
Date: January 31, 2017 01:30PM

Let me then try to simplify maybe the question:

What do I need to do to run in c++ the command:
"SET @ReturnValue = STR_TO_DATE('2021-5-13 3:5:9','%Y-%m-%d %H:%i:%S'); "

Using sql::Statement::execute() or sql::Statement::ExecuteQuery() or sql::Statement::executeUpdate() and such that the variable is actually created and saved on the server?

ps: using a prepared statement is also an option I tried.

Options: ReplyQuote




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.