我正在尝试运行如下所示的查询:
select term,X2_T_SI
from termtoclassscienceraj
where R_T_SI>1 and X2_T_SI>9 order by X2_T_SI
在具有结构的表
上+----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| TERM | varchar(20) | YES | | NULL | |
| T_SI | varchar(20) | YES | | NULL | |
| T_XSI | varchar(20) | YES | | NULL | |
| XT_SI | varchar(20) | YES | | NULL | |
| XT_XSI | varchar(20) | YES | | NULL | |
| E_T_SI | varchar(20) | YES | | NULL | |
| E_T_XSI | varchar(20) | YES | | NULL | |
| E_XT_SI | varchar(20) | YES | | NULL | |
| E_XT_XSI | varchar(20) | YES | | NULL | |
| X2_T_SI | varchar(20) | YES | | NULL | |
| R_T_SI | varchar(20) | YES | | NULL | |
+----------+-------------+------+-----+---------+-------+
但这导致输出中的子部分已排序。 例如如果2,3,4,5,6,2,7,2,3,4,8,9是运行排序的值,则输出为2,3,4,| 2,5,6,7,8,9,| 2,3,4 注意| mark已用于仅显示结果中的问题