ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 【原创】T-SQL insert temp table 表达上的差异

【原创】T-SQL insert temp table 表达上的差异

原创 Linux操作系统 作者:jyang57 时间:2010-01-10 10:20:22 0 删除 编辑

1, create table #a(id int)

insert into #a  select id from dept

drop table #a

 

2,select id  into #a  from dept

drop table #a

 

两种执行效果是一样的。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23155850/viewspace-630604/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-01-09

  • 博文量
    110
  • 访问量
    164139