Using rename table in MySQL to quickly and efficiently RENAME a database (schema)
Once a new database (schema) is created in MySQL, it cannot be renamed, therefore, if you need to rename a database, the general practice is to dump the data in the
Rename table syntaxRename table Tbl_name to New_tbl_name [, tbl_name2 to New_tbl_name2] ... Use this statement to rename one or more tables.
The rename operation occurs automatically, which means that other threads cannot read any tables while
Mysql basics: deleting databases and tables, rename a table ============== delete a DATABASE ================ drop database is used to cancel the table used in the DATABASE and cancel the DATABASE. Be careful when using this statement! To use drop
The first problem is renaming the database: You cannot rename the database directly in Enterprise Manager, you can only manipulate it in Query Analyzer
Copy Code code as follows:
Create proc killspid (@dbname varchar (20))
As
Begin
Information A
1, stop the database server, the database MDF files and LDF files copy backup a copy
2, start the database server, delete the suspect database
3, only with the backup of the database MDF file attached to the database,
Encounter Ora-14047:alter table| INDEX RENAME May is combined with other operations error[[email protected] ~]$ sqlplus lc0029999/aaaaaasql*plus:release 11.2.0.4.0 Production on Wed June 00:11:32 2015Copyright (c) 1982,-Oracle. All rights reserved.
Overview of the database management system (DBMS)1. What is a DBMS: a repository of data> Convenient Search> Large amount of data can be stored> Ensure the integrity and consistency of the data> Safe and Reliable2. Development of DBMS: Today's
Overview of the database management system (DBMS)1. What is a DBMS: a repository of data> Convenient Search> Large amount of data can be stored> Ensure the integrity and consistency of the data> Safe and Reliable2. Development of DBMS: Today's
After nearly one year of development, the function of "Quick query of Chinese characters" is no longer limited to searching Chinese dictionaries.This tool features a strong Chinese Character retrieval capability and a Chinese Dictionary retrieval
We know that when Standby_file_management is set to auto, if the primary library creates a new Datafile,standby, it automatically synchronizes a new datafile; but when primary Rename a datafile, although Standby_file_management is set to
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.