union query and unique violation

I have a query that looks like this

insert into table (select A union select B)

if A & B have both a record with same values (unique violation)

which one will be inserted? A or B

thanks

submitted by /u/YossiN
[link] [comments]

Posted on