I have two tables in a MySQL database.
User Table and Meta Table User Table
I am looking for a way to get all the information from both tables with a single query. But without repeating the information from the Users table.
This is all information related to the user number. For example, user_id = 1.
Is there a way to query the database and collect all the information I have from both tables without repeating the information from the first?
Structure example
User table
- user_id
- user_login
- user_pass
User Meta Table
- user_meta_id
- user_id
- user_meta_key
- user_meta_value
I want to get out of this
user_id, user_login, user_pass, user_meta_id, user_id, user_meta_key, user_meta_value
user_meta_id, user_id, user_meta_key, user_meta_value
user_meta_id, user_id, user_meta_key, user_meta_value
source
share