Assume a table structure of MyTable(KEY, datafield1, datafield2...).
MyTable(KEY, datafield1, datafield2...)
Often I want to either update an existing record, or insert a new record if it does
Do a select, if you get a result, update it, if not, create it.