Mysql: Insert or Update in One SQL Statement
Published on Oct 3, 2012
I must say, I really wish I knew about this technique years ago – before I started using frameworks to do a lot of my development. The effort that was wasted in building separate code and separate logic to deal with inserts vs updates, when all of this time, there is a nice and simple feature built-in to Mysql that does this for us…