mysql - What is wrong with this Replace Into SQL Query? -
the sql query is:
replace `zone` (boundary, level, company_id, country, geographicalid, city, venue) value ( geomfromtext('polygon((-121.9453444 37.325689,-121.9454174 37.3256887, -121.9454171 37.3256385,-121.9454164 37.3255364, -121.9453434 37.3255367,-121.9453444 37.325689))'), '0', 2, 'us', '6311599', (select id cities country = 'us' , name = 'santa clara'), (select id venues city = ( select id cities country = 'us' , name = 'santa clara') , name = westfield valley fair ) ); i getting following error saying there error near end of query:
com.mysql.jdbc.exceptions.jdbc4.mysqlsyntaxerrorexception: have error in sql syntax; check manual corresponds mysql server version right syntax use near 'valley fair ))' @ line 1
and name = westfield valley fair ) should be
and name = 'westfield valley fair' )
Comments
Post a Comment