简单临时表问题,但是犯糊涂了

hongxin555xia 2007-01-02 02:14:46
我用:
declare @t table(S_DATA int,S_TIME int,S_ID int)
select * into @t from text_one

代替:
insert @t
select 3, 12, null union all
select 2, 13, null union all
select 2, 14, null union all

提示:“@t”附近有错,大家给我解决下~谢谢
...全文
169 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
marco08 2007-01-15
  • 打赏
  • 举报
回复
declare @t table(S_DATA int,S_TIME int,S_ID int)
insert @t select * from text_one
--text_one表是三列的嗎?
marco08 2007-01-15
  • 打赏
  • 举报
回复
--錯了

declare @t table(S_DATA int,S_TIME int,S_ID int)
insert @t select * from text_one
rookie_one 2007-01-15
  • 打赏
  • 举报
回复
。。。。
marco08 2007-01-15
  • 打赏
  • 举报
回复
--少了列表吧
jacobsan 2007-01-15
  • 打赏
  • 举报
回复
已存在的表用insert into ...select..
tianzhenjing 2007-01-15
  • 打赏
  • 举报
回复
列数不一样啊大哥

34,590

社区成员

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

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