2
I am trying to display a column q is set at 0 and 1 so that when by 0 show 'Ok' and for when it is 1 'NOK'.
Follow my code that is not working, but by the query slq
String query1 = "Select DATA,HORA,RCPERFIL,BPCS,N_ETIQUETA,EMV_MIN,EMV_MAX,TMV,"
+ "ET5_MIN,ET5_MAX,TT5,"
+ "ETS2_MIN,ETS2_MAX,TTS2,"
+ "ET90_MIN, ET90_MAX,TT90,"
+ "EDENS_MIN,EDENS_MAX,TDENS,[EC-CHART],EBLOOMING = (CASE when EBLOOMING = '0 'then 'ok' else 'nok' END from
QRY_MIX_LCSOMA where CONTAGEM_APROV = '0' and TIPOTESTE = 'Filtrado'
ORDER BY DATA,HORA DESC";
ta returning any error? or always displays ok?
– rLinhares
by SQL displays perfectly, but by IDE, says q the syntax is wrong in 'FROM'
– Lucas16
What is the
IDE
? What language are you using to run thequery
? The problem may be occurring due to concatenation there– Marcelo de Andrade
I am using the 'Netbeans' IDE with java programming and using the JDBC method
– Lucas16
was looking at your query and is missing a close parentheses after the
END
– rLinhares
Yes, you’re right.. but when I closed it, it was another mistake, but I think I know.. I think that’s why I declared the column as int
– Lucas16
that’s right, sorry for the post
– Lucas16