ERROR 126 Incorrect key file for table

pressman 2008-06-05 02:01:10
select (CHARACTER_LENGTH(group_concat(dest_mobile separator ';'))+1)/12 phone_count ,u.username ,
DATE_FORMAT(m.date_time2, '%Y-%m-%d') date_time2,a.c_name from
(select * from mt_sms union all select * from mt_sms_200801) m , #《==这里
users u , boss_customer c ,boss_agent a
where u.user_id=m.user_id and c.user_id=u.user_id and c.agent_id=a.id
and substring(m.date_time2,1,10) >='2008-06-01' and
substring(m.date_time2,1,10) <='2008-06-05'
group by u.username,DATE_FORMAT(m.date_time2, '%Y-%m-%d') limit 0,20

报错:ERROR 126 Incorrect key file for table '#sql_bcb_7.MYI';try to repair it

如果我把第三行改为:
(select * from mt_sms) m ,
运行正常,但如果不改就有可能出错,偶尔也不出错。
...全文
2093 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
liqian8205 2011-09-16
  • 打赏
  • 举报
回复
学习一下,
linghanfeng 2009-09-29
  • 打赏
  • 举报
回复
看不到了!
pressman 2008-06-05
  • 打赏
  • 举报
回复
清除空间以后,正常不报错了,
其它的是性能问题,这个我自己来解决。
结帖了。
pressman 2008-06-05
  • 打赏
  • 举报
回复
我试下!
WWWWA 2008-06-05
  • 打赏
  • 举报
回复
清理MYSQL所在的磁盘,扩大临时表的空间试试
pressman 2008-06-05
  • 打赏
  • 举报
回复
应该是2
[root@localhost mysql]# df -k
Îļþϵͳ 1K-¿é 已用 可用 已用% ¹ÒÔصã
/dev/sdb1 141383156 131693604 2507696 99% /
/dev/sda1 101089 15115 80755 16% /boot
none 1027436 0 1027436 0% /dev/shm
1和3没问题。
请问是临时表空间不够,还是硬盘空间不够了??
WWWWA 2008-06-05
  • 打赏
  • 举报
回复
1、有可能是版本不同(升级的情况下);
2、
这是一个BUG吧,
Your server is running out of diskspace where MySQL stores temporary tables,
增加MYSQL临时表的SIZE
3、表损坏
CHECK TABLE statement语句来检查MyISAM表的健康,并用REPAIR TABLE修复一个损坏的MyISAM表。
pressman 2008-06-05
  • 打赏
  • 举报
回复
实际的情况是由于数据量比较大,系统每月的数据会单独放到一张表里,但用户有查询历史数据的需求,需要union历史表给他们查,不知道有不有其他更成熟更可行的解决办法??请指教。
ps.这个帖子我会按时结帖,希望大家帮忙,不用担心分数和结帖的问题,分数不够可以加!
64位版本的 PLSQL 正式版,只能运行在64位系统中,需要你安装 64 位的 Oracle11g 或 Oracle12c 客户端。 安装中文包时请注意安装路径是否为PLSQL程序的路径。 安装请查看说明。 PL/SQL Developer 13.0 - New Features March 15, 2019 - Version 13.0.3 released Enhancements Stability improvements Executing a select statement in the Command Window could rollback an open transaction Startup performance improvement when using a large/slow template directory Performance improvement when using many connections and connection folders Compare Table Data tool would commit every record in "update database" mode when using a commit interval Using the Auto Refresh function in the SQL Window would prompt for substitution variable values for each refresh March 1, 2019 - Version 13.0.2 released Enhancements Performance and stability improvements Preferences / Logon History / Fixed Users did not work correctly when using multi byte characters Window List did not scale correctly when moved between monitors with different DPI settings Key Configuration for "Log on" functions did not work for some system locales Startup Splash screen and Connection screen now show a taskbar icon File type extension registration did not always work correctly Object names with a "+" were not automatically surrounded with double quotes. Find Dialog could disappear when switching focus from the editor Comment Selection did not handle quotes in comments correctly Plug-In function IDE_CreatePopupItem now also supports the Plan Window Could not log on when ORACLE_HOME environment variable was set to an incorrect directory Editor Column Editing did not always work correctly Editor Keyword Case was not always applied after typing parentheses Shortcuts for File / Open / New / Program Window / ... did not work Command Window BEAUTIFY <file> command did not use the current directory from the CD command Command Window cursor was not always located correctly after the prompt Connecting the PL/SQL Developer main connection from the Command Window would show "Not logged on" as feedback File Dialog and Find Dialog could incorrectly show up after unlocking Windows An error message about "GetTickCount64" could appear when starting PL/SQL Developer on Windows XP
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland recommends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO COMPONENTS) - dbExpress - dbExpress COMPONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX - COMPILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver

56,687

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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