How to get the individual decode value in Sybase SQL? -


i'm working in sybase database.i want same thing 'decode' function in oracle.to achieve i'm using 'case' function in current project.'decode' not working in sybase database.

country varchar data type.

when i'm running "select country database ", getting country code accordingly below.i want replace country code alias country name.how can achieve this

note - can't modify database.

case  when country='23077' 'india'       when country='23078' 'australia'       when country='23079' 'usa'       when country='23080' 'france'       when country='23082' 'spain'       when country='23083' 'uk'       when country='23084' 'germany'       when country='23085' 'china'       else 'does not exist' end country, 

note :- query running without error table's rows displays, not data. in advance.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -