In a C # application, I create a query by creating a query string with parameters, and then into a command that adds parameters and their values. For instance:
string query = "UPDATE USERS u SET u.username = @PARM_USERNAME " + "WHERE u.id = @PARM_USERID "; command.Parameters.AddWithValue("@PARM_USERNAME", user.username); command.Parameters.AddWithValue("@PARM_USERID", user.id); command.Connection.Open(); int res = command.ExecuteNonQuery();
It would be useful to see a query with the applicable parameters, can this be done in C # / Visual Studio? I can check command.CommandText, but it only shows the same content as the request above, with where there are parameter labels. If this helps, it is against MySQL.
source share