T-SQL coding standard http://www.microsoft.com/china/msdn/library/data/sqlserver/sp04l9.mspx
Release date: 4/15/2005|Updated on: 4/15/2005
Brian Walker
It may be strange, but it seems that there is nothing"Formal"T-SQLEncoding standard. As early1999At the end of the year, I was pleasantly surprised to find thatJohn HindmarshProposedSQL Server 7.0Standard, I'm in2000Year2He summarized some of his
The following articles mainly introduce the basic tutorial of SQL coding optimization for the IBM DB2 database. The importance of such a specific query is that the more important the query is, you may need to optimize indexes by creating indexes. If you are coding the query that the CIO is running every day, make sure it provides the best performance.
Therefore,
Please contact me if you have any questions :)
Coding FAQ (PL/SQL and Java)1. the PL/SQL data type is incorrect. For example, aac001 is of the varchar2 type, but it is not included in ''. Although the program can be queried, it poses a hidden risk for future performance problems.Select aac002 from ac01 where aac001 = 123456;Select aac002 from ac01 where aac001 =
: applicationexception
ID
5.3. Hungarian naming lawThe Hungarian naming method was invented by a Hungary programmer who has been working at Microsoft for many years. It is passed through various products and documents of Microsoft. Most experienced programmers, no matter which language they use, are more or less using it.
Basic principle: variable name = property + Type + Object Description
That is to say, a variable name is composed of three parts of information, so that programmers can
This article mainly describes the actual operation steps to maximize the use of DB2 SQL encoding for optimal performance. In practice, when you need to ensure that the use of IBM DB2®Universal Database™(DB2 UDB) and Borland®Tools (such as Delphi™, C ++ Builder™Or Kylix™When an enterprise application is built with the optimum performance.
Programmers can use the capabilities of the DB2 optimizer to process even "difficult"
these tables in steps.Other circumstances. You should control the use of temporal tables and table variables.Note the collation.About temporal table generation use SELECT into and create TABLE + INSERT into options.6. Avoid using cursorsFor some line-by-row processing, consider putting the clientConsider using an associated subquery instead of a cursorThe following issues must be noted when using cursors:Use an efficient cursor type (such as forward-only)Keep the result set as small as possible
can't change the basic state of your development team through this article. Therefore, I carefully selected the following suggestions. The implementation of any of these is not subject to the consent of the manager. Whether your group is large or small, you don't have to let everyone in the code agree with the coding rules. You only need to follow the advice below to change the way you encode yourself:
1. Strictly follow the naming conventions as if
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.