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
The following article describes the Common commands of DB2 and their actual operation skills, if you are interested in the description of common DB2 commands and their actual operation skills, you can click the following article to view
This article mainly tells you about several DBase commands commonly used in DB2 and the actual operation skills. I hope you can use these commands and operation skills to improve your work efficiency, the following is a detailed description of the
BKJIA: From DB2 9.7, you can use the following query to check indexes not used in DB2:
SELECT INDSCHEMA, INDNAME, TABNAME
FROM SYSCAT.INDEXES
WHERE LASTUSED = '01/01/0001';
The LASTUSED column tells you the last access time of
1. The string connection in DB2 is available "| ".
2. How to quickly delete a large number of data tables (test is a database table)
The most common and most commonly used statement: delete from test. However, this method is inefficient and
Here will tell you a few dbase:db2 common commands and skills, hope that through these commands and skills, can simplify everyone's work, improve efficiency.
1.DB2 inside the string connection can be "| |" This is connected
2. How to quickly
The following articles mainly introduce the comparison between common DB2 functions and Oracle functions. If you are curious about common DB2 functions and Oracle functions, this article will unveil the secrets of this article, the following is a
This article mainly describes the comparison between common DB2 functions and Oracle functions, including descriptions of type conversion functions, time and date, string functions, and mathematical functions, the following is a description of the
The following article mainly introduces how to find out tables and packages without using indexes in DB2. The following article describes the correct operation content, we all know how to locate tables and packages. We all know that in actual
In oracle, INSERT corresponds to the LOCATE function usage in db2. The SQL code www.2cto.com eg: SELECT CONCAT (FIRST_NAME, LAST_NAME) FROM T1 eg: SELECT CONCAT (FIRST_NAME, LAST_NAME) FROM T1 INSERT function Syntax: the INSERT (ARG1, POS, SIZE, ARG2
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.