proc sql 语句中的case 表达

proc sql;
   select name,sex,age,weight,height,
      case
          when height> 65 then "Tall"
          when height < 60 then "Short"
          else "Average Height"
      end as New_height
   from sashelp.class;
quit;

你可能感兴趣的:(sql)