mysql考生号后三位对出密号

select mihao,substring(t1.kaohao, -3)  from t_zhaosheng_zhiyuan as t1 where substring(t1.kaohao, -3)  in
(
'030',
'106'
) order by field(substring(t1.kaohao, -3) ,'192',
'030',
'106');

posted @ 2019-09-13 18:57  糖豆爸爸  阅读(167)  评论(0编辑  收藏  举报
Live2D