sql - Invalid character found in string argument 'DECFLOAT' -


i seem having problem using filed when used in case statement. example when try:

select a.*, case when value > 0 non_zero      else value mytable 

where get:

invalid character found in string argument of function 'decfloat' 

usually come across type of error forgetting cast field decimal, makes no difference. if try:

select * mytable value > 0 

then runs fine.

so why criteria not work within case statement?

i think forgot "end case". try this:

select a.*, case    when value > 0 non_zero   else value end case 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -