In my table I have many rows with data. One row has seven columns with values.
Is it possible to delete from one row values of two columns and rest five leave without changes?
Can I to it with SQL delete?
cmd.CommandText = @"DELETE ImageData,"
+ " ContentType, "
+ " FROM Users "
+ " WHERE UserName = @UserName";
cmd.Parameters.Add(new SqlParameter("@UserName", username));
cmd.Parameters.Add(new SqlParameter("@ImageData", ImageData));
cmd.Parameters.Add(new SqlParameter("@ContentType", ContentType));
In my code I can't delete like this, is it wrong? Does anyone know how to delete them?