Home > Database > Mysql Tutorial > 介绍ACCESS中LIKE用法教程

介绍ACCESS中LIKE用法教程

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:23:30
Original
2963 people have browsed it

Access里like的通配符用法是这样: ?表示任何单一字符; *表示零个或多个字符; #表示任何一个数字 所以应该是: select * from databasename where fieldname like '*XX*' 原来在SQL SERVER 里是用%%的,在ACCESS里是用**号的,怪不得都找不到数据! 但如果在VS

   Access里like的通配符用法是这样:

  “?”表示任何单一字符;

  “*”表示零个或多个字符;

  “#”表示任何一个数字

  所以应该是: select * from databasename where fieldname like '*XX*'

  原来在SQL SERVER 里是用%%的,在ACCESS里是用**号的,怪不得都找不到数据!

  但如果在VS2005的TableAdapter里又要用%%,,用* 不行!!!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template