创建sql数据库并导入表另一个sql数据库 [英] Create sql database and import table another sql database
本文介绍了创建sql数据库并导入表另一个sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的sql数据库名称是data20112012.当更改财政年度时,我想创建一个名为data20122013的新数据库,并且我想将一些表放入旧数据中以转换为新数据. />
1)备份数据库
2)将您的数据库还原为新名称
3)Truncate table [tablename]
在新数据库中不需要的表.
4)从需要在新表中填充的表中选择删除.
my sql database name is data20112012. when change financial year then i want to create new database named data20122013 and i want to take some tables into old data to new data
解决方案
The easiest way is :
1) Backup your database
2) Restore your database to a new name
3)Truncate table [tablename]
the tables you don''t want in the new database.
4) Selectively delete from the tables which require to be populated in the new.
这篇关于创建sql数据库并导入表另一个sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文