Supply a prepared statement with an array
问题 Can I use a prepared statement in Postgres to add multiple values? When I saw that things are added to the prepared statement with array($val) , it sort of occurred to me that I should be able to supply an array of values to be put in my table. Is this wildly incorrect? When I tried, I saw in my db table only Array . I don't know if it is an actual array, but I'm guessing, just the word, as the column is a simple character variable . $tag = array('item1', 'item2', 'item3'); // Prepare a query