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
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
Comparison of concurrency control (LOCK) between DB2 and Oracle
Comparison of concurrency control (LOCK) between DB2 and Oracle
1 Introduction
The minimal recovery and transaction units in relational databases (DB2, Oracle, Sybase, Informix, and
1 Introduction
The minimal recovery and transaction units in relational databases (DB2, Oracle, Sybase, Informix, and SQL Server) are a transaction (Transactions). Transactions are ACID (atomicity, consistency, isolation, and durability) feature. In
1 Introduction
In relational databases (Db2,oracle,sybase,informix and SQL Server) the smallest recovery and transaction units are one transaction (transactions), and transactions have acid (atomicity, consistency, isolation, and permanence)
: Network Disk DownloadIntroduction DB2 database is the core product of IBM's relational database, and it is widely used both domestically and globally. For DB2 beginners, the "Step DB2:DBA system Management, operation and application case"
I feel that the answers to many basic questions can be obtained through the help of DB2, because DB2 itself has very detailed help information after installation, so I think it is necessary to summarize how to get help from the DB2 command syntax!
1. Combined statement execution
Begin atomic
Expression 1, semicolon, space, and carriage return
Expression 2; semicolon (,), space, and carriage return
End
2. Tables with limited access permissions (the Public select access permission for
DB2 Common CommandsFirst, the basic article1. DB2 Connect to --Connect to local database nameDB2 Connect to user Using --connect to the remote database2. DB2 force application All--forcing all applications to disconnect from the database3. DB2
DB2 supports the following two types of tablespaces:1. System Management Memory table space (Sms-system MANAGED STORAGE)2. Database Management Memory table space (Dms-database MANAGED STORAGE)Comparison of characteristics of SMS and DMS user table
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.