免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6782 | 回复: 6
打印 上一主题 下一主题

奇怪的事情(Could not position within a table ) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-10 14:39 |只看该作者 |倒序浏览
如下语句
select distinct c1 from t1; 正常

select distinct c1 from t1 where c2 in(select c2 from t2); 报如下错误:

   243: Could not position within a table (t1).
   111: ISAM error:  no record found.

select c1 from t1 where c2 in(select c2 from t2); 也是正常的

奇怪,会是什么问题呢?

请指教!

论坛徽章:
0
2 [报告]
发表于 2004-03-10 15:48 |只看该作者

奇怪的事情(Could not position within a table )

估计索引坏了.

检查数据文件:unload to /tmp/1 select * from t1;
正常,还好,数据文件没有问题.

论坛徽章:
0
3 [报告]
发表于 2004-03-10 15:50 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
4 [报告]
发表于 2004-03-10 18:18 |只看该作者

奇怪的事情(Could not position within a table )

oncheck 没有看出有什么问题.
只好unload,drop,load了

论坛徽章:
0
5 [报告]
发表于 2004-03-11 08:44 |只看该作者

奇怪的事情(Could not position within a table )

這個錯誤是正常的.從邏輯角度看沒有問題.distinct在那里不能用的.

论坛徽章:
0
6 [报告]
发表于 2004-03-11 09:54 |只看该作者

奇怪的事情(Could not position within a table )

可以用的

重新整理数据后这样select是没有问题的

论坛徽章:
11
数据库技术版块每日发帖之星
日期:2016-06-25 06:20:00数据库技术版块每日发帖之星
日期:2016-06-24 06:20:00数据库技术版块每日发帖之星
日期:2016-05-03 06:20:00数据库技术版块每日发帖之星
日期:2016-04-21 06:20:00数据库技术版块每日发帖之星
日期:2016-01-23 06:20:00数据库技术版块每日发帖之星
日期:2015-12-03 06:20:00综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-19 06:20:00数据库技术版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2016-07-30 06:20:00
7 [报告]
发表于 2004-03-11 18:35 |只看该作者

奇怪的事情(Could not position within a table )

先用oncheck检查一下,若不行重该表及索引
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP