Created
July 24, 2016 16:22
-
-
Save camaech/f1a6693264534d6763f2a4f879f22909 to your computer and use it in GitHub Desktop.
Insert additional custom meta to all users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO vsc_usermeta (user_id, meta_key, meta_value) | |
(SELECT ID AS user_id, 'division' | |
AS meta_key, 'north' AS meta_value | |
FROM vsc_users WHERE ID NOT IN | |
(SELECT user_id FROM vsc_usermeta WHERE meta_key = 'division')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment