BelowCodeIf the test passes in MySQL, MSSQL should be able to run without testing.
Copy codeThe Code is as follows: # create a table as follows:
Create temporary table TMP (A int, B INT, C INT );
Insert into TMP values (10,100, 1), (, 2), (, 2 );
1 The syntax of the SQL statement is verified.
SQL syntax check
2 The data dictionary is searched to verify table and column definitions.
Checklist name and field name from data dictionary
3 The data dictionary is searched to verify security
Implemented in languages
Benefits:
1. reduce access to the database.
2. Good portability.
Disadvantages:
1. There are many things to consider in operations. To modify one place, you must modify the other. That is, they are interrelated. If a change
1. Connect to the local database
A. if the local machine has a static IP address, after oracle is installed, it can connect to the local Oracle database.
B. When oracle is installed, the local machine does not have a static IP address (that is,
OpennessSQL ServerIt can only run on windows without any openness. The stability of the operating system is very important to the database. The Windows9x series products focus on desktop applications, and the NT Server is only suitable for small and
INSTR (source string, target string, start position, matching serial number)
In Oracle/PLSQL, The instr function returns the position of the string to be truncated in the source string. It is retrieved only once, that is, from the start of the
1. Install the Oracle Client
The premise of connecting to Oracle is to install the Oracle Client on the SQL Server. The Oracle Client is as follows:
Http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html
After the
Union and Union ALL merge query result sets of SELECT. What are their differences?
Union re-queries the query result set and removes the same rows. Disadvantages: Low Efficiency;
Union ALL only merges the query result set and does not re-query. It
Web_THBC indicates the presentation layer, that is, the page (. aspx)
BLL_THBC is the business logic layer
DAL_THBC is the database interaction layer (Execute SQL statements to the database)
Model_THBC is an entity class.
DbHelper is the
1. after you forget your username and password, the system prompts invalid username and password after you try several Oracle Default usernames and passwords (The table contains the default username and password,
UsernamePasswordDescriptionSee Also
Unlike SQL Server, Oracle uses Select to return the result set in the stored procedure, but returns the result set through Out parameters. It is actually using REF CURSOR
Copy codeThe Code is as follows: -- procedure returns the record set:
---------
Oracle client NLS_LANG settings
OracleWindowsMicrosoftUnixBash1. Composition of the NLS_LANG ParameterThe NLS_LANG parameter consists of the following parts:NLS_LANG = _.
The meanings of NLS_LANG are as follows:LANGUAGE:-Oracle message
I. oracleOracle servers include Oracle instace and Oracle database
An instance consists of a memory structure and a background process.
Memory structure includes shared pool and SGA (System Global Area ).
SGA includes Database buffer cache and Redo
1. control user access1. Create and modify user Creating UsersCreate/alter user new_user identified by password;Example: create user user_1 indentified by pwd_1Alter user user_1 identified by pwd_22. grant permissions to usersGrant privilege [,
1. create and manage tables1. Create Table syntax
Create table Name (column datatype [default expr] [, column...])
Default Constraints
2. Create a table using subqueryCreate table NameAsSelect * from u table
Ii. modify a table1. Add a new
Principle 1: Pay attention to the connection sequence in the WHERE clause:ORACLE uses the bottom-up sequence to parse the WHERE clause. According to this principle, the join between tables must be written before other WHERE conditions. The
ROW_NUMBER () OVER (partition by COL1 order by COL2)
Indicates grouping by COL1 and sorting by COL2 within the groupThis value indicates the sequential number after sorting in each group (the continuous and unique in the group)
RANK () is similar.
There are a lot of content about oracle optimization and the concept is complex, but you can summarize an outline as the direction to be considered, and then gradually refine it. The design, development, and adjustment of oracle optimization should
This is written for oracle and can be used on different computers, because it will automatically read the environment variables of the current computer to obtain the oracle installation path, the only drawback is that an intermediate text file will
Duplicate data may be in the following two cases: the first is that only some fields in the table are the same, and the second is that the records in the two rows are the same.
1. Deletion of duplicated data in some fields
1. query duplicate
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.