|
I have a column called displayOrder in a table of articles. The default value is 0. I need to display the records I select from the table according to the displayOrder, with the records containing the default value (0) last. So 1,2,3,4,5...0,0,0,0 etc.
When I do 'SELECT * FROM tblArticles ORDER BY displayOrder' it gives me the records with displayOrder=0 first. Is there a way to fix this with a different select statement?
Or maybe I could set a different default value? I tried setting the default to NULL, but that returned things in the same order. I don't know what else to set the default to in order to get records with the default displayOrder to always appear last.
Any suggestions?
|