简体   繁体   中英

How to change the Schema name and move the table into another schema?

I have a bit problem while changing the schema name. My problem is I have a table1 with schema1 and there is another schema called schema2. So how can I move the table1 in schema2?

Thanks in Advance

ALTER SCHEMA schema2
    TRANSFER schema1.table1;
GO

Ref .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM