用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這樣的數據來排序你測試一下是不是你要的結果。
@Winfred
頂0
加入收藏
相關問答推薦
加入收藏