sql server支持create table as ...建表么

joneyzhou 2005-09-27 12:43:17
在oracle 中我可以这样间建表create table test as select * from test1 where 1=2,但在sql server中好像不行,有什么语句可以实现这样的功能么(不是建临时表)
...全文
2183 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
vivianfdlpw 2005-09-27
  • 打赏
  • 举报
回复
select * into test from test1 where 1=2
wgsasd311 2005-09-27
  • 打赏
  • 举报
回复
select top 0 * into newtb from tb
子陌红尘 2005-09-27
  • 打赏
  • 举报
回复
select * into test from test1 where 1=2

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧