我有两行要更新,列是meta_key
和meta_value
。有meta_key
两行我要过滤,它是first_name
and last_name
。我想更新,meta_value
但它被first_name
and过滤了last_name
。我的查询是这样的:
UPDATE
`wp_usermeta`
SET
(`meta_value` = 'First Name' WHERE `meta_key` = 'first_name'),
(`meta_value` = 'Last Name' WHERE `meta_key` = 'last_name')
WHERE `user_id` = (SELECT `user_id` FROM (SELECT MAX(`user_id`) AS `user_id`
FROM `wp_usermeta`) AS `reg`)
请帮助我..提前谢谢!