[development] correct way to update/insert a value in a table

John Fiala jcfiala at gmail.com
Mon Mar 31 13:28:58 UTC 2008

On Mon, Mar 31, 2008 at 6:43 AM, Lluís <enboig at gmail.com> wrote:
> I need to save a value inside a table; I think the best/fast way of doing so is:

Personally I like to keep track internally if a row's been saved to
the db or not - but I've seen some folks try the UPDATE statement,
call db_affected_rows to see if any rows were changed, and if none
were, to do the insert.
John Fiala

More information about the development mailing list