Mr Lucky Well-known member Jan 17, 2020 #1 I want to replace all empty custom user fields with TBC I have tried this but not working: Code: UPDATE `xf_user_field_value` SET `field_value` = replace(field_value, '', 'TBC') Ideally I would do it for only user field id, is that also possible? Thanks
I want to replace all empty custom user fields with TBC I have tried this but not working: Code: UPDATE `xf_user_field_value` SET `field_value` = replace(field_value, '', 'TBC') Ideally I would do it for only user field id, is that also possible? Thanks
Solution Mr Lucky Jan 17, 2020 Aha, think I got it Code: UPDATE `xf_user_field_value` SET `field_value` = 'TBC' WHERE field_value = ''
Aha, think I got it Code: UPDATE `xf_user_field_value` SET `field_value` = 'TBC' WHERE field_value = ''
Mr Lucky Well-known member Jan 17, 2020 #2 Aha, think I got it Code: UPDATE `xf_user_field_value` SET `field_value` = 'TBC' WHERE field_value = '' Upvote 0 Downvote Solution
Aha, think I got it Code: UPDATE `xf_user_field_value` SET `field_value` = 'TBC' WHERE field_value = ''