Use the following ORDER BY
clause:
ORDER BY IF(name RLIKE '^[a-z]', 1, 2), name
More Related Contents:
- How to find similar results and sort by similarity?
- How does MySQL process ORDER BY and LIMIT in a query?
- Ordering by the order of values in a SQL IN() clause
- Ordering by specific field value first
- MySQL “Group By” and “Order By”
- Using union and order by clause in mysql
- SQL order string as number
- MySQL: Sort GROUP_CONCAT values
- MySQL order by “best match”
- Order by COUNT per value
- MySQL/MariaDB – order by inside subquery
- ORDER BY date and time BEFORE GROUP BY name in mysql
- updating columns with a sequence number mysql
- Mysql: Order by like?
- Sort the rows according to the order specified in WHERE IN clause
- MYSQL Select One Random record from each Category
- Remove duplicate rows in MySQL
- Error Code: 2013. Lost connection to MySQL server during query
- SQL Performance UNION vs OR
- How do I select an entire row which has the largest ID in the table?
- View’s SELECT contains a subquery in the FROM clause
- Can MySQL replace multiple characters?
- Difference between these two joining table approaches?
- Select a column with a keyword name
- MySQL Stored Procedures not working with SELECT (basic question)
- ERROR 1148: The used command is not allowed with this MySQL version
- Use Composite Primary Key as Foreign Key
- MySQL Select minimum/maximum among two (or more) given values
- SQL (MySQL) vs NoSQL (CouchDB) [closed]
- MySQL update statement to store ranking positions