jpl Posted September 17, 2008 Share Posted September 17, 2008 Hello, I'm looking to add data to an existing string. For example, I have a table and in that table I have a field called table_field1. Currently there is various data in field1 for each row. What I want to do is add something at the end of that data regardless of the preceding data. How would I go about this? Thanks for any help you can give. Link to comment https://forums.phpfreaks.com/topic/124710-mysql-add-data-to-existing-string/ Share on other sites More sharing options...
Mchl Posted September 17, 2008 Share Posted September 17, 2008 UPDATE table SET table_field1 = CONCAT(table_field1,' This will be added.'); Link to comment https://forums.phpfreaks.com/topic/124710-mysql-add-data-to-existing-string/#findComment-644144 Share on other sites More sharing options...
jpl Posted September 17, 2008 Author Share Posted September 17, 2008 Thank you Mchl! I had tried that but apparently I missed the Field1 inside the () So I had UPDATE table SET table_field1 = CONCAT(' This will be added.'); Thanks again!! Link to comment https://forums.phpfreaks.com/topic/124710-mysql-add-data-to-existing-string/#findComment-644156 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.