简体   繁体   English

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

[英]unknown column error when trying to open table

so after running the query below, whenever i try to open the affected table, it says "unknown column doc.section in order clause". 因此,在运行以下查询之后,每当我尝试打开受影响的表时,它都会显示“ order子句中的未知列doc.section”。 i can still run queries on the said table but i can no longer access the table by using the left panel on phpmyadmin. 我仍然可以在上述表上运行查询,但是我无法再通过使用phpmyadmin上的左面板访问该表。

query: 查询:

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

did my query somehow affect the structure of the table? 我的查询是否以某种方式影响了表的结构? the error said unknown column on order clause but i didnt use any order in my query? 错误说order子句上的未知列,但我在查询中没有使用任何订单?

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

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

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