Hamid
Hamid

Reputation: 141

CONCAT_WS Separator

i want to select a separator for CONCAT_WS() that not confilict by field value for example if i select "," maybe field value have string with "," i want to select a seperator than not confilict by field value :(

Upvotes: 0

Views: 524

Answers (2)

xkeshav
xkeshav

Reputation: 54072

Hope U R USING PHP

choose your own separator like

$glue=®(alt 0174)


CONCAT_WS($glue,str1,$str2)

Upvotes: 1

Daniel Protopopov
Daniel Protopopov

Reputation: 7246

From here:

CONCAT_WS(char(22 using utf8), "this", "that");

Upvotes: 2

Related Questions