What does <> mean in SQL language: Sample code is as follows
SELECT ordid,
prodid,
qty
FROM item
WHERE prodid IN (SELECT prodid
not equals
. See here for a list of conditions
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");
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.
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)