SYNTAX error in mysql version 5.5 -
hi looking run sql getting syntax error unsure off have copied mysql in below:
hi looking run sql getting syntax error unsure off have copied mysql in below:
drop table if exists `customer`; create table `customer` ( `acct_id` int not null , `first_name` varchar(10) , `last_name` varchar(9) , `address_1` varchar(34) , `address_2` varchar(7) , `address_3` varchar(8) , `address_4` varchar(7) , `contact` varchar(14) , `email` varchar(47) , `reg_date` datetime , `last_purchase` datetime , primary key (`acct_id`) ); -- -- dumping data table customer --
insert `customer` values (97675789,'samantha','jones','8837 pellentesque ave','dublin','leinster','ireland',null,'nec@fringilladonecfeugiat.ca','2015-03-13 00:00:00','2015-11-04 00:00:00'); (93872909,'vielka','mitchell','p.o. box 608, 5827 dignissim st.','galway','connacht','ireland','0855511623','sed.nec@magnapraesentinterdum.net','2015-03-26 00:00:00','2015-04-04 00:00:00');
when add multiple row in single insert statement separate them , not ;
so as
insert `customer` values (97675789,'samantha','jones','8837 pellentesque ave','dublin','leinster','ireland',null, 'nec@fringilladonecfeugiat.ca','2015-03-13 00:00:00', '2015-11-04 00:00:00'), -- should , not ; (93872909,'vielka','mitchell','p.o. box 608, 5827 dignissim st.','galway','connacht','ireland','0855511623', 'sed.nec@magnapraesentinterdum.net','2015-03-26 00:00:00', '2015-04-04 00:00:00');
Comments
Post a Comment