Syntax

    1. mysql> select *,array_difference(k2) from array_type_table;
    2. +------+-----------------------------+---------------------------------+
    3. +------+-----------------------------+---------------------------------+
    4. | 1 | [NULL] | [NULL] |
    5. | 2 | [1, 2, 3] | [0, 1, 1] |
    6. | 4 | [0, 1, 2, 3, NULL, 4, 6] | [0, 1, 1, 1, NULL, NULL, 2] |
    7. | 5 | [1, 2, 3, 4, 5, 4, 3, 2, 1] | [0, 1, 1, 1, 1, -1, -1, -1, -1] |
    8. +------+-----------------------------+---------------------------------+