代码如下select '销量', a.xy,a.ax,a.zx from(select xy_sale as xy, ax_sale as ax, zx_sale as zx from app_db.yp_xs_d_his_hy where calday=translate(substr(date_sub(CURRENT_DATE(),1) , 1 ,10 ),'-','')) as aunion select '收入', a.xy,a.ax,a.zx from(select xy_income as xy, ax_income as ax, zx_income as zx from app_db.yp_xs_d_his_hy where calday=translate(substr(date_sub(CURRENT_DATE(),1) , 1 ,10 ),'-','')) as aunion select '毛利', a.xy,a.ax,a.zx from(select xy_gross as xy, ax_gross as ax, zx_gross as zx from app_db.yp_xs_d_his_hy where calday=translate(substr(date_sub(CURRENT_DATE(),1) , 1 ,10 ),'-','')) as a