I have an array of 1500000 records in it as below
Array = ["2","3","6","7","A5057",......]
How would I be able to insert all this records in a table(which has only one field(XXX_id)) directly from the MySQL command I tried with the below query
INSERT INTO TABLE_NAME (XXX_id) VALUES (["2","3","6","7","A5057",......]);
If we have to insert from php script, no doubt we can follow this question form community.