Database additions and deletions to the comparison of statements

Source: Internet
Author: User

Query condition action Symbol comparison

Action symbol \ Database Description Mysql Sqlite Oracle PostgreSql MsSql Firebird
Equals Name equals Michael. ' Name ' = ' Michael '
Not equal to Name does not equal Michael ' Name ' <> ' Michael '
' name '! = "Michael"
Less than Age less than 10 ' Age ' < 10
Less than or equal Age is less than or equal to 10 ' Age ' <= 10
Greater than Age greater than 10 ' Age ' > 10
Greater than or equal Age greater than or equal to 10 ' Age ' >= 10
String contains Name contains Michael ' Name ' like '%michael% '
String does not contain Name does not contain Michael ' Name ' isn't like '%michael% '
String starts with XX Name begins with Michael ' Name ' like ' michael% '
String ending with XX Name ends with Michael ' Name ' like '%michael '
equals null Name equals NULL ' Name ' is NULL
Not equal to NULL Name is not equal to NULL ' Name ' is not NULL
Between XX Age is between 10 and 20 ' Age ' between and 20
Not between XX Age is not between 10 and 20 ' Age ' not between and 20
In the list Age is 10, 20, 30 one ' Age ' in (10,20,30)
Not in List Age is not 10, 20, 30 one ' Age ' isn't in (10,20,30)

Database additions and deletions to the comparison of statements

Related Article

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.