Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My practise is to do:

  UPDATE ImportantTable SET
    ImportantColumn = ImportantColumn
  WHERE Condition = True
Check the rows affected, then change it to:

  UPDATE ImportantTable SET
    ImportantColumn = NewValue
  WHERE Condition = True


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: