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. Quote 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.'); Quote 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!! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.