一次插入多条就死机的问题

comlook 2004-02-26 11:40:53
我用下列语句插入数据会出现死机现象(即总在执行,鼠标点击无反应,只能按crtl+ alt + del键结束任务才可结束执行)
insert into table_name(field1,field2,file3)
select col1,col2,col3 from table_other
where table_other.col1 > 1 and table_other.col1 < 22;
table_other按条件应只有22条记录插入到table_name表里,但就是插入出现死机;
我后来用
insert into table_name(field1,field2,file3)
select col1,col2,col3 from table_other
where table_other.col1 = 1 ;
insert into table_name(field1,field2,file3)
select col1,col2,col3 from table_other
where table_other.col1 = 2 ;
一直到第12条一句一句执行都可以,但在执行
insert into table_name(field1,field2,file3)
select col1,col2,col3 from table_other
where table_other.col1 = 13 ;时又死机
我怀疑是数据库的回滚段或临时表空间有问题,请问高手如何解决此问题
...全文
25 45 打赏 收藏 转发到动态 举报
写回复
用AI写文章
45 条回复
切换为时间正序
请发表友善的回复…
发表回复

22,207

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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