[英]How to create alter table statement for a table?
I have two databases one for production and another for staging. 我有两个数据库,一个用于生产,另一个用于登台。
Now I have made many changes in the staging database and I want to make the production the same structure as the testing without dropping any table or losing any data. 现在,我在登台数据库中进行了许多更改,并且希望使生产与测试具有相同的结构,而又不会丢失任何表或丢失任何数据。
I want to find a way where I can create alter table from staging database and apply it on the production database. 我想找到一种方法,可以从登台数据库创建alter table并将其应用于生产数据库。 Note the tables have many columns so I don't want to have to do that manually..
请注意,表中有很多列,所以我不想手动进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.