Displays 3,2,1,0,0,0... how to deduce 1,2,3,0,0,0...
3,2,1,0,0,0...
1,2,3,0,0,0...
SELECT `field1`, `field2`, `your_field` FROM `table` ORDER BY IF(`your_field` = ?, 1, 0), your_field ASC
Where instead ? value that should be at the end. In your case, this is zero.
?
Source: https://ru.stackoverflow.com/questions/517840/More articles:When calling an event, UI freezesJava JSON-RPC RequestAppeal to the prototype gives the error "is not a function"Filling the IMAGE_NT_HEADER structure with a pointer to an image in memoryThe implementation of the re-creation mechanism of class objects in the case of running the loop N times in Javahtpasswd - old passwords do not fitEscaping text before output or before saving?PHP Substring search in stringTell me what is the error?Linking the Xamarin Application Client to the Console Application ServerAll Articles