MySQL queries on meta_key in wp_usermeta table
-
Hi folks,
This may be more of an MySQL question than a WordPress question per se but I thought I’d throw it out there.
Is there a way to concatenate the meta_key fields and alias them as one?
For example, if I wanted to run
SELECT * FROM
wp_aufu_usermeta` WHERE
meta_key
= ‘first_name’+”+’last_name’ AS NAME`could this be done at all? The SQL syntax editor freaks out when I try to run this whereas most times this would be valid in MySQL or any other SQL DB.
It would be handy as I’m trying to fish out various values. Any feedback is welcomed here, foilks.
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘MySQL queries on meta_key in wp_usermeta table’ is closed to new replies.