Article directory
foreword
Those who work in industry often encounter projects on the intranet, which is to transfer data to the local database. Because of this problem we need to create a new database. The most suitable is the database script migration.
database script
Database -> Tasks -> Generate Script
select database object
advanced
operation complete
How to migrate:
- Generate template database
- generate table structure
- Generate table data (because some configuration data is written in the database)
- Export template database script
script modification
The generated script statements are divided into:
- build statement
- Create table statement
- data insert statement
It will 建库语句
be deleted because 建库语句
it is bound to the database name. We sometimes change the database name.
how to use
new database