MySQL Concatenate: Adding String At The End Of Field Data
From time to time it is useful to be able to append a string or data to an existing data of a data field by using concat function in MySQL.
For example we want to add site signature at the end of the comments posted by users.
concat(field_name,”string to add”)
Now let us see how it is used in a MySQL table query.
update comments set field_name=concat(field_name,’string to add’) where id=’1′;
Related posts:
- MySQL Optimization and Performance Tips
- Mysql Data Import
- Optimize MySQL for Low Memory Use
- Howto: How to Reset the MySQL Root Password
- Sun acquires MySQL
- Optimize MySQL Performance With MySQLTuner
- MySQL search and replace
- Compressing mysqldump output – mysql, gzip, bzip2 and LZMA (7z)
- Simple RADIUS XML dump PHP script
- MySQL 5.0 Release Candidate
Popular Related Items »
Incoming search terms
- mysql concatenate strings
- mysql update concat
- mysql concatenate
- mysql merge strings
- mysql merge string
- php mysql CONCAT
- mysql concat
- mysql append string
- mysql concat string
- mysql combine strings
- concat mysql
- mysql concatenate fields
- mysql concat update
- mysql concat fields
- mysql add text to field
- update concat mysql
- mysql combine string
- mysql join strings
- mysql update concatenate
- update mysql concat
- mysql string add
- update concat
- mysql string append
- doctrine CONCAT
- mysql concatenate string
- mysql string merge
- php mysql concatenate
- mysql concat strings
- MySQL add string
- update concat string
- mysql combining strings
- mysql concat in update
- mysql add data to field
- update concatenate
- mysql add to end of field
- concat string mysql
- mysql update string
- mysql SET concat
- mysql update set concat
- concatenate string in mysql
- mysql add to end of string
- mysql append string to field
- sql add text to field
- concatenate mysql string
- sql add text to string
