How do you select all the columns from one table and just some columns from another table using JOIN? In MySQL.
MySQL Select all columns from one table and some from another table
joinmysqlselect
Related Question
- Mysql – Should I use the datetime or timestamp data type in MySQL
- Mysql – How to get a list of user accounts using the command line in MySQL
- R – How to join (merge) data frames (inner, outer, left, right)
- Sql – How to UPDATE from a SELECT in SQL Server
- Php – thesql_fetch_array()/thesql_fetch_assoc()/thesql_fetch_row()/thesql_num_rows etc… expects parameter 1 to be resource
- Mysql – Duplicating a MySQL table, indices, and data
- Python – Selecting multiple columns in a Pandas dataframe
Best Solution
Just use the table name:
That would select all columns from
myTable
and columnsfoo
andbar
fromotherTable
.