Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do we have something similar to 'Decode' ??

Status
Not open for further replies.

prasadmokashi

Programmer
Oct 31, 2003
41
US
Hi,

I am very new to Sybase.

Could you please tell me, similar to Oracle do we have something like 'Decode' in sybase ?

Thanks & Regards,
Prasad
 
Prasad,

I've found that in Oracle and Sybase the 'CASE' statments are easier to code and understand.
 
There's no equivalent to decode
but, as rebriggs says - case is your friend.
I reckon 'case' can look a bit clumsy compared to 'decode'
but that's just personal.
HTH

Dickie Bird (:)-)))
 
Thank you very much for your quick response.

I tried CASE statement & it works fine.

Dickie, as u said for those who are used to 'Decode', 'CASE' really seems a bit clumsy.

Thanks & Regards,
Prasad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top