Skip to content
Advertisement

Problem with Concat results searching in MYSQL

Hi this is the query I’m trying to achieve results with but how can I get the search for concat results in that column?

Advertisement

Answer

You can’t refer to an alias defined in the select clause in the same scope (left apart the order by clause). In very recent versions of MySQL (8.0.14 or higher), you can use lateral for this:

In earlier versions, you can JOIN, or use a subquery:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement