ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Building a query with the Advanced SQL Calculator

An SQL expression can be defined to query features across a database or across multiple databases if you are not in an edit session. The results of the query are displayed in the Advanced SQL Calculator Results window.

SQL expressions are built according to a standard syntax. For more information, see Building a query expression.

  1. 启动 ArcMap。
  2. 如有必要,可在地图中加载数据。
  3. On the main menu, click Customize > Toolbars > Production Editing.
  4. Add the Advanced SQL Calculator tool by doing the following:
    1. Click Customize > Customize Mode on the main menu.

      The Customize dialog box appears.

    2. Click the Commands tab.
    3. In the Categories list, click Production Editing.
    4. Click and drag the Advanced SQL Calculator button Advanced SQL Calculator to a toolbar.
    5. Click Close.
  5. Click the Advanced SQL Calculator button Advanced SQL Calculator.

    The Advanced SQL Calculator dialog box appears.

    Advanced SQL Calculator dialog box
  6. From the Choose Layers list, choose the list of layers for which you want to run the query.
  7. If you only want to include features in the current extent, check the Only query current extent check box.
  8. In the Fields list, choose the field you want to use in the query.
  9. Click Get Unique Values if you want to display a list of values that exist in the database.

    The unique values for the field appear.

  10. Construct an SQL query expression.

    提示:

    Click Clear to delete a previously created expression and create a new one.

    For more information, see Building a query expression.

  11. Click Verify to validate your query syntax.

    注:

    SQL syntax can only be verified against a single layer.

  12. If you want to display any additional fields in the feature classes, check the check boxes next to their names in the Choose additional display fields list.

    提示:

    You can click Check all to display all available fields.

  13. 单击应用。

The query results appear in the Advanced SQL Calculator Results window.

相关主题

  • Advanced SQL Calculator
  • Calculating field values in batch

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明