SELECT col FROM foo
ORDER BY col REGEXP "^[^0-9]", col+0, col
This query works while sorting in ascending order
While SELECT col FROM foo
ORDER BY col REGEXP "^[^0-9]", col+0, col DESC doesnt works :(
Hi
I have the following query
select SUBSTRING_INDEX(m.FileName, '/', -1) as ShortFileName from modifications m order by ShortFileName ASC;
The output of the query is
+------------------------+
| ShortFileName |
+------------------------+
| CTKAction.java |
| CTKView.java...
Hi
I have a varchar column say Issue with data as follow
900
1100
update
test
800
Now I want to sort this column but the sort by query sorts it like
1100
800
900
test
update
Can anyone tell me the correct way to sot this column
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.