When the SQL statement was written earlier, it was easy to forget some special usage, I hereby tidy up the SQL statement operation, convenient to write SQL convenient for myself, want to paste up, see together, at the same time hope everyone can
If the data in one of your databases meets the following conditions, you should consider creating the partition table.
1, a table in the database a lot of data. What are many concepts, 10,000? 20,000, or 100,000 or 1 million? This, I think, is a
1. Open the corresponding database through Plsql.
2. Select the Export Users Objects submenu under the menu tools
3. Select the table name that you want to export the table to, and then select the saved path.
4. Click the Export button to export
1, replicate_do_db and replicate_ignore_db do not appear at the same time. Prone to confusion. is meaningless.
Replicate_do_db:db1
Replicate_ignore_db:db2
Statement mode:
Using the USE statement
Use Db1;insert into TB1 values (1);
Use
Add Field
ALTER TABLE DOCDSP add Dspcode char (200)
Delete a field
ALTER TABLE table_name DROP COLUMN column_name
Modify a field type
ALTER TABLE table_name ALTER COLUMN COLUMN_NAME NEW_DATA_TYPE
Renamed
sp_rename
Changes the name of a
This is a simple ASP tutorial to add data Code program, accept the data submitted by users, and then saved to the database tutorial is very convenient, oh, here is a detailed description of the example bar.
Example:For example: Enter the field name:
Installation of SQL Server 2000
1, install SQL Server 2000 Simplified Chinese development version
2, install the SQL Server component
3, install the database server
4, select Local computer
5, create a new SQL Server instance/install Client
Oracle packages are divided into package specification and package body
First: Create a package specification
Create or Replace package P_pagewithgroup is
--Author: Xiaowei
--CREATED:2014/3/18
--Purpose: grouped paging process
TYPE Type_cur is
I. Preparation of knowledge
Constraints are placed in a table with the following five kinds of constraints:
NOT NULL NON-EMPTY constraint c specified column is not allowed to be null
The unique UNIQUE constraint u Specifies that there are no
After a successful connection to the database in Dreamweaver CS4, a binding operation is performed on the database immediately, but there is an inexplicable problem with the test, and when you click on the binding test, there is always a "FROM
The following statements are part of the MS SQL statement and are not available in Access.
SQL Category:
ddl-Data Definition language (create,alter,drop,declare)
dml-Data Manipulation Language (Select,delete,update,insert)
dcl-Data Control
During the use of the database, due to the problems of the program, there are sometimes duplicate data, which causes the database to be set up incorrectly.
Method One
Declare @max integer, @id integer
Declare cur_rows cursor Local for select main
According to ORACLE10G's characteristics, when I execute the drop table or delete all, Oracle places the deleted table or data record in the database Recycle Bin (db RecycleBin). So we can use the Flashback Table command to recover the deleted table
Ora-01650:unable to extend rollback segment name by NUM intablespace name
Cause: The Oracle error described above is caused by an insufficient number of tablespaces in the rollback segment, which is also the most common Oracle error message for
Today a little excited, want to "on the use of dw+asp to achieve the paging technology reference" to share with the dw+asp to do the Web page friends. Remove only "first page, previous page, next page, last page" of the Little Pain
The final
This article mainly introduces. NET to manipulate Excel instances, you need friends to refer to the 1. Read read as if there are several ways, through ado.net, through the Microsoft.Interop.Excel support class library with invoke COM read, as
Today, a classmate asked me if I can transfer the database, I thought that should be a new table, but that efficiency is too low, and also need to import a lot of records in the table, trouble, so think of MySQL bin in two instructions, mysqldump
This article is a MySQL table and index usage specification for a detailed analysis of the introduction, the need for friends to reference the
One, MySQL build table, the field needs to be set to Non-empty, you need to set the field default value.
--operation of table data
--Input data
SELECT * FROM Students
--note: Into is an optional keyword used between insert and table name
INSERT into student (school number, name, gender, age, professional)
VALUES (' 003 ', ' Yangli ', ' female ', 18
Method One
The code is as follows
SELECT Convert (char (6), GETDATE (), 112)
Method Two
The code is as follows
SELECT * FROM table name where Convert (varchar (100), Date field, 23
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