繁体   English   中英

尝试打开表时出现未知列错误

[英]unknown column error when trying to open table

因此,在运行以下查询之后,每当我尝试打开受影响的表时,它都会显示“ order子句中的未知列doc.section”。 我仍然可以在上述表上运行查询,但是我无法再通过使用phpmyadmin上的左面板访问该表。

查询:

select pending.*
from (
    select distinct doc.*, users.dept_id
    from list_users users, exit_doc doc
    inner join ( 
        select q.section, 
        max(q.subsection) subsection
        from exit_doc q 
        group by q.section ) latest
    on doc.section = latest.section
    and doc.subsection = latest.subsection
    where doc.user_id = users.user_id) pending
inner join (
    select approvers.dept_id, approvers.role_code 
    from approvers 
    where user_id = 10004 
    and delete_flag = 0) user
on pending.next_user = user.role_code 
and pending.dept_id = user.dept_id

我的查询是否以某种方式影响了表的结构? 错误说order子句上的未知列,但我在查询中没有使用任何订单?

您是否尝试清除浏览器的Cookie和缓存?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM