Answer the question
In order to leave comments, you need to log in
How to execute the request correctly?
Hello guys. Please help me understand why a request of this type does not work:
"Before this section, I connect to the database and execute 1 request, after that I want to execute the second one, but something goes wrong .."
IDbCommand lolo = dbcon.CreateCommand ();
string sqlto = "INSERT INTO `tranzakcii`(`nomertranzakcii`, `idc`, `price`, `datetranzakcii`) VALUES (0,1,100700,0)";
lolo.CommandText = sqlto;
lolo.ExecuteNonQuery ();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question