A
A
Andrey Begin2018-09-28 20:15:48
C++ / C#
Andrey Begin, 2018-09-28 20:15:48

Insert fails?

Does not write data to the local database, it also does not display any errors

string insert = String.Format("INSERT INTO `users` (`desktop`) VALUES ('{0}')", new Program().selectId());
MySqlCommand com_insert = new MySqlCommand(insert, bd_connect);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cheypnow, 2018-09-30
@Cheypnow

Did you forget com_insert.ExecuteNonQuery()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question