Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

MySQL:use valor de outra tabela como alias de coluna?


Você tentou envolver aliases em backqoutes?
SELECT 
  data.segment1 AS `type.segment1`,
  data.segment2 AS `type.segment2`,
  data.segment3 AS `type.segment3`
FROM something_obscure AS data
JOIN obscure_type AS type
ON data.obscure_type_id = type.id