Basically I want to take a row in a table which has entries 'example entry' and turn them into 'example_entry'. There are thousands of entries so I don't want to do it manually, obviously. How would I do this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Try this:
UPDATE your_table
SET your_field = REPLACE(your_field, ' ', '_')
回答2:
Try with the following query:
UPDATE table SET field = REPLACE(field, ' ', '_');