社区
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中好像不行,有什么语句可以实现这样的功能么(不是建临时表)
...全文
2183
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
–怎样用ADO在
SQL
SERVER
中建库,
建表
通过ADO可以访问
SQL
SERVER
,并执行相应的
SQL
语句建库、
建表
,下面是
SQL
SERVER
BOOKS ONLINE中的相关定义。
建表
:
CREATE
TABLE
[ database_name.[owner]. | owner. ]
table
_name ( { | column_name AS computed_column_expression } [,…n] ) [ON {filegroup | DEFAULT} ] [TEXTIMAGE_ON {filegrou
SQl
Server
数据库
讲述
Sql
Server
数据库的企业级开发常用的关键知识点。尽量把概念讲的通俗易懂,了解其架构原理,不仅仅会操作应用,还要把握其本质。帮大家更深层次的理解数据库。 【课程目录】 一.
Sql
Server
数据库架构 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
MS-SQL Server
34,590
社区成员
254,589
社区内容
发帖
与我相关
我的任务
MS-SQL Server
MS-SQL Server相关内容讨论专区
复制链接
扫一扫
分享
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章