This article summarizes the common operation commands of DB2 and shares them with you. For friends who use DB2, refer to the following.The DB2 database management client is no longer with the control center since the v9.7 version, but instead uses
The command-line processor is the DB2 interface, which best embodies the power of DB2, as well as the simplicity and versatility of DB2. The author makes a detailed exposition of it through examples.0 Reviews:Blair Adamache, DB2 technology
Check archiving processing View Log Archive status DB2 "Select Date (CAST (start_time as TIMESTAMP)) as DATE, COUNT (*) as Number_of_logs_per_day, (Count (*) *23.4375) as AMOUNT_LOGS_DAY_MB, Dbpartitionnum as Dbpart From Sysibmadm. Db_history WHERE
To speed up the loading of data, many DBAs prefer to use the load tool for data migration and loading, but the load utility brings us some problems as well, and today focuses on the solution when we encounter problems when we use the Load tool again.
Reposted from: longtang Bay
1.1.1 obtain the first N records
SQL Server: Select Top N * From xtable
ORACLE: Select * From xtable where rownum
DB2: Select * From xtable fetch first n rows only
1.1.2 obtain the current date
SQL Server: Select getdate
Common DB2 commands
Common DB2 commandsI. Basics1. db2 connect to -- connect to the local database nameDb2 connect to user using -- connect to the remote database2. db2 force application all -- force all applications to disconnect the database3.
DB2 supports Incremental Backup (Incremental Backup) and Delta Backup (Delta Backup. incremental backup is equivalent to a differential backup in Oracle, that is, after a full backup, all the changes since the full backup are backed up for each
In DB2, the sum function used to replace the count query is to calculate and sum the column values. The www.2cto.com count function accumulates the columns that meet the conditions and adds one when the conditions are met. The count function is
[Posting] DB2 partition features
Data Warehouse scenario overviewLevel: Intermediate
Paul McInerney (paulmci@ca.ibm.com), user-centric design expert, DB2 development, IBM
September 18, 2006
This article introduces the following table design features
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.