这是一个表结构(例如测试):
__________________________________________
| Field Name | Data Type |
|________________|_________________________|
| id | BIGINT (20) |
|________________|_________________________|
| title | varchar(25) |
|________________|_________________________|
| description | text |
|________________|_________________________|
查询如下:
SELECT * FROM TEST ORDER BY description DESC;
但是我想按字段大小/字段描述的长度排序。字段类型将为TEXT或BLOB。
OCTET_LENGTH(column_name)
。