1、爲選出的數據加一列固定值 select ‘kk’ as name from table;2、在選擇出的數據中進行判斷,如果爲1 則輸出男性,如果爲2 則輸出女性select (case when sex=1 then '男'