How to compare two arrays and pick only the non matching elements In postgres

后端 未结 7 1986
一整个雨季
一整个雨季 2020-12-14 06:15

How can I pick only the non matching elements between two arrays.

Example:

base_array [12,3,5,7,8]
temp_array [3,7,8]

So here I wan

7条回答
  •  执念已碎
    2020-12-14 06:44

    The contrib/intarray module provides this functionality--for arrays of integers, anyway. For other data types, you may have to write your own functions (or modify the ones provided with intarray).

提交回复
热议问题