mysql - SQL Syntax Error: Can anyone see an issue here? -
i getting syntax error sql statement. little stumped seems ok me...
insert vehicle (vin,plate,plateprov,condition,year,makecode,make,model,bstyle,mileage,colour,twotone,paintstage,impact1) values ('3vwsf31k36m617923','ardm093','on','go','06','47','volkswagen','jetta','4d sed','132123','burgundy','0','0','07')
here table structure:
id int(11) vin varchar(17) plate varchar(10) plateprov varchar(2) condition varchar(2) year int(11) makecode varchar(12) make varchar(20) model varchar(50) bstyle varchar(20) engine varchar(20) mileage int(7) colour varchar(20) twotone int(11) paintstage int(11) paintcode1 varchar(15) paintcode2 varchar(15) paintcode3 varchar(15) impact1 varchar(2) impact2 varchar(30)
error message get:
you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'condition,year,makecode,make,model,bstyle,mileage,colour,twotone,paintstage,impa' @ line 1
any appreciated.. kyle
condition
reserved word. should find name identifier, or include in backticks.
the list of reserved words readily available (see here).
the use of condition
rather arcane, not obvious reserved word. here documentation it. however, type of error means issue reserved word.
Comments
Post a Comment