CSV upload to update a thing if it already exists

Is there a way that you can upload a csv file, and have it create a new thing if it doesn’t already exist - and update a thing if it does exist.

Let’s say “SKU number” is the field that is a unique Identifier.

you can try DB triggers