【发布时间】:2013-12-09 10:01:56
【问题描述】:
当我在查询下运行时,它给我的错误是Error Code: 126. Incorrect key file for table '/tmp/#sql_52e_0.MYI'; try to repair it
查询:
Select id, first_name, last_name, communication_email,birthday,group_concat(email_template_id) as T from uzer
LEFT join user_email_preference ON uzer.id = user_email_preference.user_id
group by user_id limit 1
当我从查询中删除 group_concat() 函数时,它运行完美,没有错误,不知道为什么?
我用谷歌搜索错误,发现如果你在tmp/ 中没有足够的信息,那么它只会给出这种类型的错误。但是我在这里只获取了一个 reord,而且当我在查询中有 group_concat() 时,它只会给我错误。
【问题讨论】: