mondo
Posts: 0
Joined: Sat Nov 02, 2013 4:34 pm

Insert or Update-if-existing

I'd like to push to the Appery.io DB, but I want to base it off a unique key. If the key exists, then UPDATE, else INSERT... like mysql Update on Duplicate (http://dev.mysql.com/doc/refman/5.0/e...).

Is this possible without first querying and THEN deciding action?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Insert or Update-if-existing

You can first check wether such object exists in the database and based on the result do another request.

Return to “Issues”