The following command deletes the rows that contain "13856" in the corresponding rows in the Access database.
I want the rows containing "13856" to remain and the others rows to be deleted. So I want the exact opposite of what you did with the code below. please help me.
using (var myConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + patch))
using (var myCommand = myConnection.CreateCommand())
{
var nameParam = new OleDbParameter("@k", "13856";
myCommand.CommandText = "DELETE FROM [bill] WHERE (k) = @k";
myCommand.Parameters.Add(nameParam);
myConnection.Open();
myCommand.ExecuteNonQuery();
}

Amit GuptaRank #190 · 12.8K pointsPosted Dec 19, 2017, 10:54 AM EST
Mann Maurya99 pointsPosted Dec 19, 2017, 9:13 PM EST
Mehmet Yilmaz24 pointsPosted Dec 19, 2017, 11:21 PM EST