Detailed procedure for querying data from DB2 data tables and views

Source: Internet
Author: User

This article describes how to query data from the DB2 data table and view. If you encounter similar operations, however, if you do not know how to perform proper operations on the DB2 data table and View query data, the following articles must be a mentor to you.

After the data is inserted into the DB2 data table, you can use the SELECT statement or execute the Query operation in the Control Center to Query it. By providing predicates in SELECT statements, you can retrieve only useful or related information for them. In the previous loading exercise, you have seen an example of using Command Editor to execute the SELECT statement. The next exercise demonstrates another way to query data.

View the table content. Select the HWLD. AUTHOR table and click Open.

Figure 37 shows all data except XML column data. To view XML data, click... Button.

Figure 37. View table

  

The following window should be opened:

Figure 38. View XML data in the table

Click the Expand All button to view the complete structure of the XML document.

You can also query views. Use the simple view HWLD. DB2_AUTHOR. Click Control Center> View and select DB2_AUTHOR. Click Query.

Command Editor is started, which contains the appropriate SELECT statement for querying DB2_AUTHOR.

Click the green execution button in Command Editor. The Query Results panel is displayed. The result of the HWLD. DB2_AUTHOR view is displayed:

Figure 39. query view

The above content is an introduction to querying data from the DB2 data table and view.

Related Article

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.