" and is used to filter unequal values."> How to write not equal in Oracle-Oracle-php.cn
Home> Database> Oracle> body text

How to write not equal in Oracle

下次还敢
Release: 2024-05-07 14:09:15
Original
780 people have browsed it

The operator used to express inequality in Oracle is "!==", which is used to compare two values and return a Boolean value whether they are equal. The syntax is: expression1 != expression2. This operator can also be expressed as "<>" and is used to filter for unequal values.

How to write not equal in Oracle

Inequality operator in Oracle

In Oracle, the operator used to express inequality is "!==".

Usage

The "!==" operator compares two values and returns a Boolean value indicating whether they are not equal. The syntax is:

表达式1 != 表达式2
Copy after login

where "expression 1" and "expression 2" can be constants, variables, columns or expressions.

Examples

The following are some examples showing the use of the "!==" operator:

SELECT * FROM employees WHERE salary != 10000; SELECT product_name FROM products WHERE price != 15.99;
Copy after login

These queries will return items that satisfy the given All rows of the condition, that is, the employee's salary is not equal to 10,000, or the price of the product is not equal to 15.99.

Note

The "!==" operator is equivalent to the "<>" operator and can also be used to express inequality.

The above is the detailed content of How to write not equal in Oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!