What does “<>” mean in Oracle

前端 未结 10 2437
挽巷
挽巷 2020-12-30 19:46

What does <> mean in SQL language: Sample code is as follows

SELECT ordid,
       prodid,
       qty
FROM   item
WHERE  prodid IN (SELECT prodid
                  


        
相关标签:
10条回答
  • 2020-12-30 20:31

    not equals. See here for a list of conditions

    0 讨论(0)
  • 2020-12-30 20:34

    In mysql extended version, <> gives out error. You are using mysql_query Eventually, you have to use extended version of my mysql. Old will be replaced in future browser. Rather use something like

    $con = mysqli_connect("host", "username", "password", "databaseName");
    
    mysqli_query($con, "select orderid != 650");
    
    0 讨论(0)
  • 2020-12-30 20:37

    It means 'not equal to'. So you're filtering out records where ordid is 605. Overall you're looking for any records which have the same prodid and qty values as those assigned to ordid 605, but which are for a different order.

    0 讨论(0)
  • 2020-12-30 20:40

    It means not equal to .

    It's the same as != in C-like languages. but <> is ISO Standard and

    != Not equal to (not ISO standard)

    0 讨论(0)
提交回复
热议问题