Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在子句中使用别名。ORDER BY但它给出了“找不到列”。我该如何解决 ?
ORDER BY
当你使用它时它应该可以工作,像这样的工作
SELECT date_id as id FROM `td_date` ORDER BY id
或使用:
SELECT date_id,tot FROM `td_date` ORDER BY 2
在这种情况下,它按第二列排序