The source of this article: http://www.cnblogs.com/wy123/p/6704619.htmlIssue backgroundIn a write SQL Server stored procedure, if a temporary table is defined in the stored procedure,Some people are used to explicitly delete a temporary table
Add a delete modify field with an SQL statement
1. Add Field
ALTER TABLE DOCDSP add Dspcode char (200)
2. Delete fields
ALTER TABLE table_name DROP COLUMN column_name
3. Modify the field type
ALTER TABLE table_name ALTER COLUMN COLUMN_NAME
1. if the data is important, back up the data first. 2. delete the table data SQL: DeleteFrom (#39; table name #39;) For example: DeleteFromabcd 3. execute the new SQL statement: dbcccheckident (#39; table name #39;, reseed, 0) for example:
database table Basic Operations
After thinking, finally the name of the blog changed to the basic operation of the database table, formerly called the SQL statement Daquan, feeling with "Daquan" this noun is too big, and the
Messages table:Mysql>create Table Messages (->message_id int Auto_increment primary KEY,->user_name varchar () NOT NULL,->author_id int NOT NULL,->body text,->forum_id int not NULL);Forums Table:Mysql>create Table Forums (->forum_id int
1. Understand the database and create new:1) Open the database and connect to the server.2) service type without tube.3) server name: Make a point "." Indicates that the server is on the local computer and, if it is hosted on someone else's server,
oracle| Design | data | Repeat we may have this situation, a table originally poorly designed, resulting in the table data data duplication, then, how to delete the duplicate data?
Duplicate data may have two scenarios, the first one being only
Create a table, create a database, delete a table, delete a database
Create a database
Create DATABASE Text2 Text22. Deleting a databaseDrop database Text2 Delete the databases Text2
Create a table
The CREATE table class
Requirement: delete an Oracle database to delete 10 million historical records from a common heap table. Impact of direct deletion: 1. The deletion may fail due to insufficient undo tablespace.
Requirement: delete an Oracle database to delete 10
1. Understand the database and create new:1) Open the database and connect to the server.2) service type without tube.3) server name: Make a point "." Indicates that the server is on the local computer and, if it is hosted on someone else's server,
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.