无法弄清楚sql语法错误

时间:2010-12-22 10:25:53

标签: sql mysql

我试图通过php将注册信息输入到mysql数据库中,但是sql语句似乎错了。谁能告诉我我做错了什么?

INSERT INTO user(id,username,password,email,security_question,security_answer,face_photo,body_photo,user_salutation,user_firstname,user_middlename,user_lastname,parent_salutation,parent_firstname,parent_middlename,parent_lastname,gender,date_of_birth,address1,address2,country,state,city,pincode,country_code1,area_code1,phone1,country_code2,area_code2,phone2,alt_email,website,travel_within,passport,travel_companion,formal_education,other_qualification,known_languages,hobbies,about_you) VALUES('',some username,abcabc,abc@test.com,What is your first pet\'s name?,I don\'t know,'','',Mr.,sam,,fisher,Mr.,,,,Male,05/12/2009,test address1,,10,1073,16713,000000,00,00,00000000,,,,bcd@test.com,bcd@test.com,Within Country,on,on,none,none,spanish,none,none )

1 个答案:

答案 0 :(得分:3)

您的任何字符串值都没有引号:

..... ) VALUES('', 'some username', 'abcabc', 'abc@test.com'..... etc...