Categorized: Database
Changing Part of a String in SQL and Updating the Table
Something like this:
update `table_name` set `field_name` = replace(`field_name`, 'text_to_replace', 'new_text')
Something like this:
update `table_name` set `field_name` = replace(`field_name`, 'text_to_replace', 'new_text')
Elsewhere in the empire: Home, Blog, APOD
Copyright © 2006–2008 Trey Piepmeier. All Rights Reserved.
Comments
Nothing to see here yet. Start things off, why don't you?
What do you think about that?