数据迁移 CREATE TABLE .... AS ...

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/G090909/article/details/80473093

再做一些数据迁移时候,很多人会使用create table new_table as select * from table old_table where id=-1的方式来年建立一摸一样的表,但是这样做有个很大的弊端,不能将原表中的default value也一同迁移过来。

猜你喜欢

转载自blog.csdn.net/G090909/article/details/80473093