Python Insert Array Into Sql Table Constraints