Results 1 to 5 of 5

Thread: Is Decode() the most efficient?

  1. #1
    Join Date
    Oct 2006
    Location
    Denver
    Posts
    4

    Is Decode() the most efficient?

    I have very large Decode statements in my sql. Is there anything that is more efficient?

    Thanks!

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Try CASE statement, it is easier to understand and read as well.

  3. #3
    Join Date
    Apr 2009
    Posts
    20
    Can anyone tell me the difference between DECODE and CASE. Which is better. i suggest CASE. is it right?

  4. #4
    Join Date
    Apr 2009
    Location
    European Union
    Posts
    6
    Quote Originally Posted by srikanth.mss View Post
    Can anyone tell me the difference between DECODE and CASE. Which is better. i suggest CASE. is it right?
    There are no differences between DECODE and CASE. Remember for future that you can not use DECODE() in PL/SQL, but CASE.

  5. #5
    Join Date
    Apr 2009
    Posts
    20
    regarding performance oriented, is there any difference.

    I think CASe has the ability to check the ranges.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •