arcgis属性选取like用法

查询对象为ArcInfo coverage,shapefile, INFO table,dBASE table,ArcSDE data,ArcIMS 要素类,或者 ArcIMS image service 子图层: '_' indicates one character    '%' indicates any number of characters.
查询对象为personal geodatabase data:

'?' indicates one character '*' indicates any number of characters

 

 

ArcGIS的查询语句跟数据库相关,例如,进行模糊查询:

对于Oracle等大型数据库来说应该是如下:

where 项目名称 like '%土地%'   ---------------------------------------------------用引文单引号。

                    

但是对于个人数据库,即access数据库来说,应该是:

where 项目名称 like '*土地*'

使用通配符查询

通配符描述示例
% 包含零个或更多字符的任意字符串。 WHERE title LIKE '%computer%' 将查找处于书名任意位置的包含单词 computer 的所有书名。
_(下划线) 任何单个字符。 WHERE au_fname LIKE '_ean' 将查找以 ean 结尾的所有 4 个字母的名字(Dean、Sean 等)。
[ ] 指定范围 ([a-f]) 或集合 ([abcdef]) 中的任何单个字符。 WHERE au_lname LIKE '[C-P]arsen' 将查找以arsen 结尾且以介于 C 与 P 之间的任何单个字符开始的作者姓氏,例如,Carsen、Larsen、Karsen 等。
[^] 不属于指定范围 ([a-f]) 或集合 ([abcdef]) 的任何单个字符。 WHERE au_lname LIKE 'de[^l]%' 将查找以 de 开始且其后的字母不为 l 的所有作者的姓氏。
posted @ 2017-05-08 12:07  玥茹苟  阅读(35104)  评论(0编辑  收藏  举报