私のデータベースには、この列のすべてのレコードをゼロに設定するような数字と ID を持つ Points という列があります。どうすればこれを達成できますか?
これがivがこれまでに行ったことです。
public static void clearPoints()
{
OleDbConnection myConnection = GetConnection();
int count = 0;
string myQuery1 = "Update AnswerTable SET Points= " + count+ "'";
OleDbCommand myCommand = new OleDbCommand(myQuery1, myConnection);
try
{
myConnection.Open();
myCommand.ExecuteNonQuery();
}
catch (Exception ex)
{
Console.WriteLine("Exception in DBHandler", ex);
}
finally
{
myConnection.Close();
}