docs.microsoft.com Links: SQLAn application scenario with the for XML path applicationFirst of all! We are adding a student table, the column is (Stuid,sname,hobby), Stuid on behalf of the student number, SName on behalf of the student name, hobby
1. Add a new field to the tableALTER TABLE table_name ADD COLUMN_NAME VARCHAR2 (a) NOT NULL2. Delete a field from the tableDelete Table table_name Column column_name3. Modify a field name in the tableALTER TABLE table_name Rename column oldname to
In the daily development, often encounter the page open very slow situation, by excluding, determined, is the impact of the database, in order to quickly find the specific SQL, can be logged through the MySQL method.--Open the SQL execution logging
Common SQL--View the number of table recordsSELECT a.id, B.[name], a.rowcnt from sysindexes A, sys.tables b WHERE a.id = b.[object_id] and A.indid --View File groupsSELECT name, data_space_id file group ID, size/128 [File Size
The word "trigger" has long been heard (the first is in the database video of Geng's aunt), after watching the video, the understanding of things such as: triggers, stored procedures, transactions, logs and so on no detailed to consult, there is no
Welcome to the Oracle Community Forum, interact with 2 million technical personnel | Id | Operation | Name | Rows | Cost | Time | Start | Execs | Rows | Read | Activity | ActivityDetail | (Estim) | Active (s) | Active | (Actual) | Reqs |
Today, I tried to use Transact-SQL to export and import data. It is much more efficient than DTs! 1. Enable the OpenDataSource function
Start> All
Program-> Microsoft SQL Server 2005-> Configuration tool-> SQL Server peripheral
First, the SQL statement:
Select * FromDBO. o_ordercontentWhereOrderno='Bmb00022'
// Obtain the following information:
// Our requirement is to combine two lines of English into one line of English. Of course, there are many such mergers.
Replace "BackEnd_Clean" with "'backend" in the url field in the Mng_Auth_SiteMap table, and keep the rest unchanged, as shown below:
UPDATE [BackEnd_DB]. [dbo]. [Mng_Auth_SiteMap]SET [URL] = replace (cast ([url] as nvarchar (255), 'backend _ clean',
A few days ago, when the database space was full, it had increased to a maximum of 32 GB for a single storage file. However, a lot of methods are used to release the tablespace. The main reason is that the system uses a large number of partition
My process is as follows:
Create or replace package body proc_bodyProcedure init (start_date date, end_date date) isFor rec in (here is a query associated with several tables [R query]) loop......End loop;End;End proc_body;
I have created several
Convert the query result to XML format. The last sentence is in the format of 1, 2, and 3. directly add the code without explanation.
1 select * from student for XML PathResult
1 JOHN 0 2 Xiao Zhang 0 3 Xiao Chen 0 4 Zheng 0 5 Xiao
Recursive queries using CTE (common table expressions) ---- SQL Server 2005 and later versions
A common table expression (CTE) has an important advantage: It can reference itself to create a recursive CTE. Recursive CTE is a public table expression
This post was last edited by u011669689 on 2013-09-25 18:25:00
SQL Select UpdateBasic conditions:
User Table UserID, username
User_money Table U_id,user_money
User_money_exchange table: Money, Username,ordertag = 1 or 2
Now want to do:
Update
In fact, the introduction of ST_Geometry from ArcSDE9.2 makes users very attractive, and especially after ArcSDE9.3, more and more users use SQL to operate ST_geometry, however, this problem is always encountered when configuring Oracle listeners.
At the customer's requirement, a script is required to close the Bonus Item procurement orders in batches. Some methods are found on metalink, but none of them can be tested. It turns out that you need to generate a concurrent program for the code.
1. Use sort to make data orderlyTypically, all your data really needs is in some sort of order. An ORDER BY statement of SQL can organize data in alphabetical or numerical sequence. As a result, similar values are sorted together by group. However,
Let's look at the knowledge of the relevant data structures first.
There was such an example in the study of linear tables.
Known as a sequential table of integers to store LA, the Trial construct order table lb requires that sequential table lb
Session
We sometimes encounter such a problem, at a certain time there is always a large query caused the temporary table space error. But we can't wait to catch the relevant SQL to optimize or process. Can be diagnosed through events.
Sys@ocn>alter
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.