用insert into table union all select 插入的记录数达到1724时,SQL出现错误!

torrent2008 2005-02-21 01:39:31
用insert into table union all select 插入的记录数达到1724时,SQL出现错误!

服务器: 消息 8621,级别 17,状态 1,行 1
内部查询处理器错误: 在查询优化过程中,查询处理器用尽了堆栈空间。

为什么会出现这种情况?
如何解决?
...全文
541 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
torrent2008 2005-02-27
  • 打赏
  • 举报
回复
请问:
如何调整SQL的堆栈空间?
jiang130 2005-02-26
  • 打赏
  • 举报
回复
不存在任何表中,1724條?
insert into 表 select '1' union select '2'........
torrent2008 2005-02-26
  • 打赏
  • 举报
回复
ding!
torrent2008 2005-02-24
  • 打赏
  • 举报
回复
ding!
torrent2008 2005-02-23
  • 打赏
  • 举报
回复
插入的记录
不存在任何的数据表中
不得不以这种形式插入记录
------------------
请问:还有其他解决方法吗?
Softlee81307 2005-02-21
  • 打赏
  • 举报
回复
insert into 表(col1,..)
select col1,.. from 表1 union all
select col1 ....
Softlee81307 2005-02-21
  • 打赏
  • 举报
回复
insert into 表
select * from 表1

34,873

社区成员

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

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