You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by Ahmed Hussien <aa...@gmail.com> on 2014/10/26 08:16:10 UTC

question related to Upsert

for a specific table with 5 attributes including the rowID,
1- for inserting: a new row I add a value to attribute 1 and 3 and 5.
2- for updating: I update attribute 2 and 4.

Is there a way to know from the upsert statement directly what type I'm 
using (insert-update)?
Or I should use select to find if the record exits for updating?
Ahmed