Alpha1
Well-known member
In vb we use a custom field for gender. I would like to move the content of this field to the XF default gender field.
What query should I use? (mind that it concerns a big board)
@Jake Bunce
Would this work?
What query should I use? (mind that it concerns a big board)
@Jake Bunce
Would this work?
Code:
UPDATE xf_user_profile AS up
SET up.gender = (
SELECT ufv.field_value
FROM xf_user_field_value AS ufv
WHERE ufv.user_id = up.user_id
AND ufv.field_id = 'customfield'
);