0

A short time ago phpMyAdmin started adding an ORDER BY clause to a particular table whenever I browse it or even apply an SQL query. I can't figure out how to undo this.

If I type the following in the SQL editor:
SELECT * FROM sales WHERE product = 'SERVICE'

The query phpMyAdmin actually runs is. . .
SELECT * FROM sales WHERE product = 'SERVICE' ORDER BY adjust DESC

The column adjust doesn't even have an index

1 Answer 1

4

If you hover over the column heading, you can see a menu displayed which lists several sorting options. It sounds like you may have inadvertently clicked or shift-clicked on a column header, so the solution is to ctrl-click or alt-click (or shift-option-click if you're on a Mac) to remove the ORDER BY clause.

Mouseover menu

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.