Concate String In MYSQL

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-03-18T09:42:42Z Indexed on 2010/03/18 9:51 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

How can i concate this string in mysql

desc=desc+$desct

what i want is each time i insert a variable from PHP that the string is added to the string which was already in db and seperated with ||

the field desc should look like this

desc
10||30||90||710 

say i want to add the value 20

desc
10||30||90||710||20

then the desc field should look like this

How can i implement this?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php