I checked in my database and the view is created with the expected structure but it's empty, there are no rows.
$view= $connexion->prepare("CREATE VIEW MP1 AS SELECT * FROM occupation_data WHERE onetsoc_code IN (".implode(',',$tupleasup).")");
Here what my array look for :
$tupleasup= array('19-1041.00','19-1042.00');
The only thing "weird" that I used is this : How to use php array with sql IN operator?
Thank you