我有一个这样的数组:
Array (
[0] => A3C0101
[1] => Kun
[2] => Kame
[3] => 25.08. 14:00
[4] => NE
[5] => Sv
[6] => A3C0103
[7] => Popo
[8] => Ska
[9] => 24.08. 17:00
[10] => SO
[11] =>
[12] => A3C0105
[13] => Muka
[14] => Stran
[15] => 24.08. 14:00
[16] => SO
[17] =>
[18] => A3C0107
[19] => Lojoe
[20] => ©kvor
[21] => 25.08. 17:00
[22] => NE
[23] =>
...
...
...
...
...
[467] =>
)
我需要将其按每六个值分开。我想让 MySql 像这样插入:
INSERT INTO `table` (`id` ,`one` ,`two`, `date` ,`den` ,`type`)
VALUES
('A3C0101', 'Kun', 'Kame', '25.08. 14:00', 'NE', 'Sv'),
('A3C0103', 'Popo', 'Ska', '24.08. 17:00', 'SO', ''),
('A3C0105', 'Muka', 'Stran', '24.08. 14:00', 'SO', ''),
('A3C0107', 'Lojoe', '©kvor', '25.08. 17:00', 'NE', ''),
...
...
...
每六个形成一个插入。我希望你明白。
感谢您的任何建议!:-)
菲利普