mysql - Error Code: 1292. Truncated incorrect DOUBLE value: 'yes' -


when execute sql query:

insert archi(nodo1,nodo2) select p.nodo,p2.nodo  polinodo p,polinodo p2  p.way=p2.way , p.idpolinodo!=p2.idpolinodo , p.idpolinodo=p2.idpolinodo-1  , p.way in      (select idtag_way      tag_way_min k='highway' ,      idtag_way in (select idtag_way                  tag_way_min k='oneway' , (v=1 or v='true' or v='yes')) ) 

i receive following error:

error code: 1292. truncated incorrect double value: 'yes'

how can fix this?

thanks.

it seems column v in table tag_way numeric, part of where clause appears invalid:

(v=1 or v='true' or v='yes') 

try , modify part conditions match data type.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -