Six precautions for the operation of the DB2 temporary table

Source: Internet
Author: User

This article discusses six things worth attention during the actual operations of the DB2 temporary table, if you are curious about the six things you should pay attention to during the actual operations of the DB2 temporary table, the following articles will unveil its mystery.

Pay special attention to the following points when using temporary tables in the database DB2:

1. the DB2 Temporary Table must be created using the command Declare Temporary Table, and must be created on the user Temporary tablespace;

2. When creating a database, DB2 does not create user temporary tablespaces by default. To use temporary tables, you must create user temporary tablespaces before creating temporary tables;

3. The temporary table mode is SESSION;

4. By default, when the Commit command is executed, all records in the temporary table will be deleted. This can be controlled by specifying different parameters when creating the temporary table;

5. When the ROLLBACK command is run, the user's temporary table will be deleted;

6. In DB2 version 8, you can log on to the DB2 temporary table.

The above content is an introduction to the six precautions for using the temporary DB2 table. I hope you will have some gains.

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.