The like of ACCESS

Source: Internet
Author: User

Learned SQL lessons in W3school, knowing the commands, functions, etc. used in the database.

The examples given in the course are mostly used in SQL Server and have recently begun to run under MS Access. There are certain differences, such as those encountered today: likeoperators .


Like is used to search for a specified pattern in a where sentence, such as what begins, ends, and what is in the middle ...

In the example given, use "%" in conjunction with the definition of wildcard characters (missing letters in the pattern).

Like what:

Persons table:

in Access, I create a persons-like table that uses the same statement but doesn't run out of the desired results. I searched the internet a bit, the problem is on the wildcard!

In Access, the wildcard character used is "*" instead of "%"

In other words, running in Access is a statement that should be:

SELECT * from Persons
WHERE city like ' n '

-----------------p.s. Content is 2013.11.26 local collation-----------------

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.