I have created table like this
CREATE TABLE profile_contact
(
profile_id INT UNSIGNED NOT NULL,
service CHAR(20) NOT NULL,
contact_name CHAR(25) NOT NULL,
);
Then latter I want to insert the rows from mysql
mysql> INSERT INTO profile_contact
-> (profile_id,service,contact_name)
-> VALUES
-> (1,AIM,user1-aimid),
-> (1,MSN,user1-msnid),
-> (2,AIM,user2-aimid),
-> (2,MSN,user2-msnid),
-> (2,Yahoo,user2-yahooid)
-> (4,Yahoo,user4-yahooid);
But I got error
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(4,Yahoo,user4-yahooid)' at line 9
I have followed standard INSERT INTO VALUES syntax.What is wrong?