更改架构名称
我已经在名为 Sample1 的模式中创建了一个表,现在我想更改该表的模式名称。我尝试通过
改变模式sample2传输sample1.table1
来做到这一点,但它给了我一个错误。
如何将模式名称从sample1更改为sample2
I have created a table in a schema called sample1 and now i want to change the schema name of the table. I tried doing it by
alter schema sample2 transfer sample1.table1
But it gives me an error.
How do I change the schema name from sample1 to sample2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过此操作:
我基于您对已创建的sample2 的其他答案所做的评论。
Did you try this:
I'm basing this on the comment you made to the other answer that you already had sample2 created.
从
CREATE SCHEMA Sample2
开始,然后运行相同的命令。start with
CREATE SCHEMA sample2
and then run the same command.