簡體   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