Mysql
 sql >> Database >  >> RDS >> Mysql

MySQL:utilizzare il valore di un'altra tabella come alias di colonna?

Hai provato a racchiudere gli alias in 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