DB2 stored procedure: Basic knowledge
When you classify remote servers and databases on the server on the client workstation, a simple DB2 client/server environment exists. In this environment, each time an SQL statement is executed on the database
Code for trigger Creation
Create Trigger TG_ProjectNameOn table1After UpdateAsUpdate table2Set [project name] = B. Project NameFrom table2 a, inserted BWhere a. ProjID = B. ID
Description of Inserted and Deleted in the trigger.
Two
In database design and management, the WHERE clause is undoubtedly one of the most frequently used clauses. So are you really good at using this clause? I can't see it. The following suggestions can help you make full use of the WHERE clause
Multi-version concurrency control technology has become the trend of database development in the future. Currently, multi-version concurrency control is adopted by many database or storage engines, such as Oracle, ms SQL Server 2005 +, PostgreSQL,
Explain shows how mysql uses indexes to process select statements and connect tables. It can help you select better indexes and write more optimized query statements.
You can add the explain statement before the select statement:
For example:
Today, I used the attach function of SQL Server 2008 to attach a database. A problem occurred. The error message is:
Unable to open physical file "D:\Documents\Dalt\XXXX.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server:
The new version can bring more efficient technology to the software. Now we can forget five aspects of the Oracle database.
1. only DBA can restore Data
People who work directly with SQL database-DBAs and IT information personnel can cause database
This article uses SQL Server 2 K as an example to illustrate the specific implementation process of connecting SQL Server to the Oracle Server.
1. Install the oralce client software and sqlserver2000 software on the PC.
2. Configure the tnsnames.
How to execute a stored procedure when starting SQL SERVER?
Create the stored procedure in the master database, and then find the stored procedure in the Enterprise Manager. Right-click the stored procedure and choose Properties. Select "execute
This article is a set of effective systems summarized by the author in years of ORACLE Database management work. It greatly improves the work efficiency, so as to predict the potential risks of the database in advance and eliminate them as soon as
I. porting process records
Basic information: two minicomputers, one sun250, with solaris8 + oracle8i, jgsun, ip 10.11.1.11, running, with application connection, and one with sunv890, it is installed with Solaris9 + Oracle10g, The Machine name is
We transplanted our Oracle database to the new environment. Some customer tables exist in two databases at the same time, but those tables in the new environment have some additional fields. Can you help me use the import/export tool? In this way, I
Relational databases represent data as a simple two-dimensional model, that is, records represented as rows and columns for storage and processing. Relational databases were generated earlier, but they are only suitable for the storage and
At the same time, the increase in the number of online traffic is obviously difficult for servers with 1 GB of memory. In severe cases, even the server crashes every day or gets stuck from time to time. This problem has plagued me for more than half
If you have some creative thinking on some special business issues, you will often design solutions in SQL. For example, the company can select one of the following two methods to make the requested fee consistent with the paid fee.
The first method
AWR (Automatic Workload Repository) is a new tool provided by Oracle 10 Gb to collect database statistics. It mainly includes the AWR memory area, historical data storage files, ASH and other components.
The main content of the AWR report includes
In actual Oracle applications, many people may encounter such problems. For performance or other considerations, you need to change the tablespace of a table or all tables of a user. The common practice is to first Delete the table and then
1. First, check the name and file of the tablespace.
select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_spacefrom dba_data_filesorder by tablespace_name;
2. Add data files
alter tablespace users
SQL Server 2000 makes it easier to export data in XML, but it is troublesome to import and process XML data in SQL Server 2000.
If you refer to Books Online (BOL), you will find related entries, including OPENXML and OPENROWSET. All of these
During Oracle development, If you test your application independently, deploy the application, and submit it to dozens of concurrent users, it is very likely that the concurrency problems that were not previously detected will suffer. For example,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service