Problem to insert statement

Hi,
How to resolve the problem below?

10:33:45  insert into conv_store.c_store_vg(store_no,dscr,address_eng,address_chi,location_eng,location_chi,zone,latitute,longitube,closed_on_sat,closed_on_sun,closed_on_holiday,operation_day_eng,operation_day_chi,operation_hour_eng,operation_hour_chi,open_date,close_date,route_mon,route_tue,route_wed,route_thu,route_fri,route_sat,route_sun,sfzone,in_time,in_by,mod_time,mod_by,deleted,sms_addr_eng,sms_addr_chi,send_sms,StoreCapacity,AvailableCapacity) values('3038','852A6001',' ','上水鳳南路9號翠麗花園商場地下1及2A號鋪',' ','北區','新界',0,0,0,0,0,'','','Monday-Friday   (09:00-21:00) , Saturday Sunday & Public Holiday (12:00-20:00)','星期一至五上午 09:00 - 晚上 21:00  星期六日及公眾假期  上午12:00 - 晚上20:00',str_to_date('01/01/2000','%m/%d/%Y'),null,'','','','','','','','852A',now(),'VG_FTP',now(),'VG_FTP',0,'','',0,40,40,'','','') Error Code: 1136. Column count doesn't match value count at row 1       0.125 sec
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mukesh YadavFull Stack DeveloperCommented:
In columns list

conv_store.c_store_vg(store_no,dscr,address_eng,address_chi,location_eng,location_chi,zone,latitute,longitube,closed_on_sat,closed_on_sun,closed_on_holiday,operation_day_eng,operation_day_chi,operation_hour_eng,operation_hour_chi,open_date,close_date,route_mon,route_tue,route_wed,route_thu,route_fri,route_sat,route_sun,sfzone,in_time,in_by,mod_time,mod_by,deleted,sms_addr_eng,sms_addr_chi,send_sms,StoreCapacity,AvailableCapacity) 

Open in new window


You used 36 column names to insert values for. But in values list

values('3038','852A6001',' ','上水鳳南路9號翠麗花園商場地下1及2A號鋪',' ','北區','新界',0,0,0,0,0,'','','Monday-Friday   (09:00-21:00) , Saturday Sunday & Public Holiday (12:00-20:00)','星期一至五上午 09:00 - 晚上 21:00  星期六日及公眾假期  上午12:00 - 晚上20:00',str_to_date('01/01/2000','%m/%d/%Y'),null,'','','','','','','','852A',now(),'VG_FTP',now(),'VG_FTP',0,'','',0,40,40,'','','')

Open in new window


You are trying to insert values for 39 columns which is not right.

You can insert values for as much columns as you define in list.
In this case you defined 36 columns so you can only insert values for these 36 columns only not less no more.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.