DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: difference between <>and !=

  1. #1
    Join Date
    Jan 2004
    Posts
    1

    difference between <>and !=

    Hi,

    a)how it affects the sql query when used <> and !=
    b) when shud we use <> and !=
    c) Does it affects the performance

  2. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    They behave identically. (I think <> looks nicer - so I use that!)

  3. #3
    Join Date
    Nov 2002
    Posts
    80
    '!' is a long way away from '=' on my keyboard, whereas <> are right next to each other...

    so that makes select count(9) from foo where bar <> 0 a damn efficient statement.

  4. #4
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Originally posted by onlysimon
    so that makes select count(9) from foo where bar <> 0 a damn efficient statement.
    I _knew_ there was a reason why count(9) was more efficient than count(1). That's it!
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  5. #5
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    No difference.
    Remember the Golden Rule - He who has the gold makes the rules!
    ===================
    Kris109
    Ph.D., OCP 8i, 9i, 10g, 11g DBA

  6. #6
    Join Date
    Jan 2002
    Location
    Netherlands
    Posts
    1,587
    None
    Tarry Singh
    I'm a JOLE(JavaOracleLinuxEnthusiast)
    TarryBlogging
    --- Everything was meant to be---

Posting Permissions

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


Click Here to Expand Forum to Full Width