You need to create separate tables with a row for the contact number or email address.
CREATE TABLE Contacts (contactId int, name varchar(128), etc, etc CREATE TABLE ContactEmail (contactId int, emailAddress varchar(128), etc CREATE TABLE ContactPhone (contactId int, phoneNumber varchar(128), etc
This will allow you to change individual numbers / emails, delete them, add them, etc., without requiring an external program to unpack the array.
But if you really want to keep it denormalized, you can convert the array to a delimited string., Place a separator between each email address (with the appropriate magic to make sure the address does not yet contain a separator), then split it on the return path.
source share