I have a problem with updating record. I want to update 2 record in 1 column in one button click with two parameters. this is the code :
private void Button_Click(object sender, EventArgs e)
{
int use = Convert.ToInt32(textBox1.Text);
perintahsql = new SqlCeCommand("UPDATE Barang SET Pakai = @Pakai WHERE Nama_Barang = 'Mie Rebus' AND Nama_Barang = 'Telor'", koneksi);
perintahsql.Parameters.Clear();
perintahsql.Parameters.AddWithValue("@Pakai", use);
}
How to overcome this problem? Thanks.