Oracle Learning Notes Comparison operations

Source: Internet
Author: User

< >= <= >= <> (not equals)! = (Not equal to): = (Assignment)

Between......and (contains boundaries in an interval)

--Query wages from 2000 to 5000 of the salary select salary from employees where salary between2000and5000

In ()

--Query 80,90,70,50, department number person select last_name from Employees where department_id in (80,90,70,50)

Like

--The name contains the letter "A" of the select last_name from employees where last_name like '%a% '--the second letter in the name is "a" select last_name from Employees whe Re last_name like ' _a% '--the second letter in the name is "_", escape for the translation character select last_name from employees where last_name like ' #_% ' escape ' # '


Oracle Learning Notes Comparison operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.