I have an sql query like this:-
REPLACE(
GROUP_CONCAT(
IF(
(timediff(delta_ts,creation_ts) > '03:00:00')
&& (priority='P5') ,bug_id,'')
),',,','' )
AS exceeded_bugs
from bugs
......
The result I got:-
exceeded_bugs: ,3743331,3743332,3743333
I need different delimiter since, the default delimiter of Group concat is ",". I need to separate the bugs using space or "|" or "-" symbol.
I tried giving :-
REPLACE(
GROUP_CONCAT(
IF(
(timediff(delta_ts,creation_ts) > '05:00:00')
&& (priority='P6') ,bug_id,'')
)
,SEPARATOR '-' )
AS exceeded_bugs
from bugs
.....
I got error:-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SEPARATOR '-' ) as exceeded_bugs at line 1
Please help to correct the sql syntax of group concat with a different separator.