Directory
1. Programming with the Transact-SQL language
1.1. Data Definition Language DDL
1.2. Data manipulation language DML
1.3. Data Control Language DCL
1.4.transact-sql Language Basics
2.
This article belongs to theUnderstand the mysteries of performance-slow in applications, fast in SSMS"seriesNext: Understanding the Mysteries of performance-application slow, SSMs fast (5)--case: How to deal with parameter sniffingWe put aside the
SQL Server 2008 provides an enhanced SQL command merge for use in the msdn:http://msdn.microsoft.com/zh-cn/library/bb510625.aspx
Function: Inserts, updates, or deletes on the target table based on the results of joining with the source table. For
Today is ready to use the project to increase the paging function, the original is too limited, so the Internet to find some information recorded, the front is the use of others to summarize, the following is their own test results, haha, testing to
SQL Enhanced three Merge (using Insert,update,delete in a single statement) in Server 2008SQL Server 2008 provides an enhanced SQL command merge, usage see msdn:http://msdn.microsoft.com/zh-cn/library/bb510625.aspxFunction: Performs an INSERT,
One, top instead of SET ROWCOUNT
In traditional SQL statements prior to SQL Server 2005, the top statement does not support local variables. See
Http://www.jb51.net/article/27089.htm
Set ROWCOUNT can be used at this time, but in SQL Server 2005/2008,
First, top alternative set RowCountIn traditional SQL statements prior to SQL Server 2005, the top statement was not supported for local variables. See http://www.cnblogs.com/downmoon/archive/2007/12/29/1019686.htmlYou can use set RowCount at this
One of the power of T-SQL is the large volume of operation data. However, in some scenarios, the number of rows affected by T-SQL needs to be limited. For example, in the past, Yilong encountered a scenario where too many rows were changed at a time
SQL Server categories of built-in functions
function columns
Description
Aggregation functions
The action performed is to combine multiple values into a single value. For example , COUNT,SUM,MIN, and MAX.
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.