Introduction to LIKE usage in ACCESS

Source: Internet
Author: User
The usage of like wildcard in Access is as follows :? Represents any single character; * Represents zero or multiple characters; # represents any number, so it should be: select * fromdatabasenamewherefieldnamelike * XX * originally used in SQLSERVER %, the ** number is used in ACCESS. No wonder the data cannot be found! However, if

The usage of like wildcard in Access is as follows :? Represents any single character; * Represents zero or multiple characters; # represents any number, so it should be: select * from databasename where fieldname like '* XX *' originally used % in SQL SERVER, and used the ** number in ACCESS. No wonder no data can be found! However, if

The wildcard usage of like in Access is as follows:

"?" Represents any single character;

"*" Indicates zero or multiple characters;

"#" Indicates any number

So it should be: select * from databasename where fieldname like '* XX *'

Originally, it was % used in SQL SERVER, and ** used in ACCESS. No wonder no data can be found!

However, if you want to use % again in TableAdapter of VS2005, you cannot use !!!

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.