无法使用"作为"为列提供别名。在mysql中

时间:2017-04-15 13:25:15

标签: mysql column-alias

查询:

Select batch as Senior_PM_Batch from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');

该查询提供了准确的结果,但无法将列batch重命名为Senior_PM_Batch

结果仅将列名称显示为Batch

1 个答案:

答案 0 :(得分:0)

尝试

Select batch as `Senior_PM_Batch` from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');