尝试仅将现有表的结构复制到新表时出错 [英] Getting error when trying to copy only structure of the existing table to new one
本文介绍了尝试仅将现有表的结构复制到新表时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
每当我尝试将现有表格的结构复制到新表格时,我都会收到错误。
这是我的代码。
感谢您的帮助
我尝试过:
CREATE TABLE NewSalesTable AS
(SELECT * < br $>
FROM Sales);
错误消息:'('。期待ID。
Hello,
I keep getting an error whenever I try to copy only structure of the existing table to new one.
This my code.
Thanks for your help
What I have tried:
CREATE TABLE NewSalesTable AS
(SELECT *
FROM Sales);
Error Msg: Incorrect syntax error near '('. Expecting ID.
推荐答案
查看: sql server - 从表创建表(结构)现有表格 - Stack Overflow [ ^ ]另一个解决方案。
CHeck this: sql server - Create table (structure) from existing table - Stack Overflow[^] for another solution.
这篇关于尝试仅将现有表的结构复制到新表时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!