Brent W Well-known member Jun 11, 2012 #1 Need an SQL query for the following: Set homepage field to empty for everyone with 0 posts. Set signature to empty for everyone with 0 posts.
Need an SQL query for the following: Set homepage field to empty for everyone with 0 posts. Set signature to empty for everyone with 0 posts.
Jake Bunce Well-known member Jun 11, 2012 #2 Code: UPDATE xf_user_profile AS up SET up.signature = '', up.homepage = '' WHERE 0 = ( SELECT u.message_count FROM xf_user AS u WHERE u.user_id = up.user_id ); Upvote 0 Downvote
Code: UPDATE xf_user_profile AS up SET up.signature = '', up.homepage = '' WHERE 0 = ( SELECT u.message_count FROM xf_user AS u WHERE u.user_id = up.user_id );