QueryFilter pQueryFilter = new QueryFilter();
String whereclause = "UPPER(/"NAME/") like UPPER('%jack%')";
pQueryFilter.setWhereClause(whereclause);
在条件语句上的前后都加上UPPER转换,这样就不区分大小写了。
以下有VB的IQueryFilter.WhereClause Property文档:
http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esrigeodatabase/IQueryFilter_WhereClause.htm
Selecting features and graphics
http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=SQL_reference
本文介绍了一种在SQL查询中实现不区分大小写的搜索方法。通过使用UPPER函数将查询字符串及目标字段同时转为大写进行比较,确保了查询结果的一致性。此方法适用于需要对姓名等字段进行大小写不敏感匹配的情况。
7075

被折叠的 条评论
为什么被折叠?



