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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -