用case进行转义就可以了selectt1.a,t2.b,t1.c,t2.cfromt1innerjoint2ont1.c=t2.cwheret1.ain('11','55','33','88')orderbycaset1.awhen'11'then1when'55'then2when'33'then3when'88'then4end意思是将t1.a的值根据条件转为1,2,3,4这样的数据来排序你测试一下是不是你要的结果。
@kuaibo
顶0
加入收藏
相关问答推荐
加入收藏