Skip to content
Advertisement

Is it possible to use a SELECT statement inside a CONCAT?

I’m trying to create a string from table values, along with some text to make it more readable.

The only problem I’m having is that I can’t get the SELECT statement to work inside my CONCAT. It’s been bugging me for quite some time now, and I would appreciate any feedback on what I’m doing wrong or if there is another way to do this.

My SQL script:

Advertisement

Answer

Just change it to an insert from a select

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