社区
MS-SQL Server
帖子详情
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中好像不行,有什么语句可以实现这样的功能么(不是建临时表)
...全文
2186
3
打赏
收藏
sql server支持create table as ...建表么
在oracle 中我可以这样间建表create table test as select * from test1 where 1=2,但在sql server中好像不行,有什么语句可以实现这样的功能么(不是建临时表)
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用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
SQl
Server
数据库
讲述
Sql
Server
数据库的企业级开发常用的关键知识点。尽量把概念讲的通俗易懂,了解其架构原理,不仅仅会操作应用,还要把握其本质。帮大家更深层次的理解数据库。【课程目录】一.
Sql
Server
数据库架构1.架构2.体系结构协议层(Protocols)/•关系引擎(Relational Engine),也称为查询处理器(Query Processor)/存储引擎(Storage Engine)/•
SQL
OS二.数据库核心应用。1.数据仓库/2.连接数据库/3.数据库开发三.数据库设计方法。四.
SQL
语句。1.
Sql
基本操作。/2.数据库库
表
资源获取。五.数据库事务。1.事务访问数据库。/2.数据批处理
sql
server
查看
建
表
语句,生成
建
表
语句
sql
server
查看
建
表
语句,生成
建
表
语句,
sql
server
show
create
table
create
table
as......
--my
sql
下
建
立
表
结构 ,oracle不
支持
like
create
table
tba1 as select * from tba; or
create
table
tba1 like tba; --结论:my
sql
下
create
table
a as select * from b形式创
建
的
表
不包含索引信息, --like子句形式包含完整
表
结构和索引信息 --所以 as
sql
sever不能用
create
table
table
1 as select * from
table
2
sql
sever不能用
create
table
table
1 as select * from
table
2;这是oracle中这样用,
sql
sever用例如:select * into Student_backup from Student;...
MS-SQL Server
34,596
社区成员
254,586
社区内容
发帖
与我相关
我的任务
MS-SQL Server
MS-SQL Server相关内容讨论专区
复制链接
扫一扫
分享
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章