Results 1 to 4 of 4

Thread: Which will execute fast??

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Answers
    12

    Which will execute fast??

    select count(*) from T1
    select count(1) from T1
    select count(PK) from T1


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: Which will execute fast??

    I think all the three take the same time.

    --------------------
    suresh


  3. #3
    Junior Member
    Join Date
    Oct 2007
    Answers
    12

    Re: Which will execute fast??

    No.
    2nd and 3rd will be fast than 1st query.
    But amng 2nd and 3rd which will b fast,i dont know...


  4. #4
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Which will execute fast??

    All the three will give you same performance. But there will be difference if you are using oracle version 8 or before.
    In that case 2nd wil be faster than 1st. and 3rd will be the fastest.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact