Can someone tell me the simplest way to do the following in
Openacs-4 from a Tcl procedure (or a Postgres: procedure I guess):
If a row in a table, apm_parameter_values, exists which has a
particular value in one of it's fields, I would like to update
the row, otherwise, I would like to insert a new row.
The way I'm doing it now is I do a db_dml update command, and
then check the result of db_resultrows; if it is 0, then I do
an insert.