I have a php array. I want to insert all of them into a column in mysql table using PDO.
$myArray = array("12397", "45263426", "253725372","2735724372");
$sql = "DROP TEMPORARY TABLE IF EXISTS T_Temp;
CREATE TEMPORARY TABLE T_Temp (
AccountID varchar(120)
);";
Now I want to insert all the array values into T_Temp table in single shot. I don't want to use foreach.
I don't want to use foreach...why would that matter? Just use whatever works.