无法使用“为列指定别名”;作为「;在mysql中

无法使用“为列指定别名”;作为「;在mysql中,mysql,column-alias,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'); Select batch a

查询:

从名称为“项目经理”的配置文件中选择批次作为高级项目经理批次,然后尝试批次

从配置文件中选择批次作为“高级项目经理”和批次
Select batch as Senior_PM_Batch from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');
Select batch as `Senior_PM_Batch` from profile where designation = 'project manager' and batch <= ALL(select batch from profile where designation = 'project manager');