Jump to content

GROUP_CONCAT - using SEPARATOR gives an error


andrew_50

Recommended Posts

I would like to change the default "," separator in a GROUP_CONCAT to something else. Studio complains mightily. I am using the correct syntax as it works in a straight SQL query, just not in Studio. I'm guessing it's not supported, but I'd like some clarification.

Link to comment
Share on other sites

  • 2 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Not sure what I was doing wrong/differently, but group concat is now working for me.

I think, but cannot be sure, that it was that Jasper requires use of double quotes, while stereotypially I use single quotes when writing SQL

This in a SELECT works...

group_concat(rx.qr_code SEPARATOR " ") as caseCodes,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...