我有一个查询:
$sql = "INSERT INTO test_xml
(title, album, artist)
VALUES ('$pieces[2]', '$pieces[1]', '$pieces[0]')
ON DUPLICATE KEY UPDATE
time = now(),
album = VALUES(album),
artist = VALUES(artist)";