MySQL Forums
Forum List  »  Newbie

Wordpress Metadata and Value
Posted by: Jay 147
Date: January 18, 2016 04:30AM

Hi,
I am trying to get some data from my wordpress tables that and are stored in a meta_key and meta_value fields
What i am wanting it to do it make a view of the data as a table for exporting to another database.
the table is wp_usermeta fields are (umeta_id, user_id, meta_key, meta_value)
so i have something like:
select n1.user_id, n1.meta_value as nickname from cala_usermeta where meta_key='nickname'
select n1.user_id, n1.meta_value as firstname from cala_usermeta where meta_key='first_name'
select n1.user_id, n1.meta_value as lastname from cala_usermeta where meta_key='last_name'

So I need to have the end result a single view (user_id, nickname, firstname, lastname)
any help would be greatly appreciated. Thanks

Options: ReplyQuote


Subject
Written By
Posted
Wordpress Metadata and Value
January 18, 2016 04:30AM
January 19, 2016 02:48AM
January 20, 2016 05:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.