Just use the table name:
SELECT myTable.*, otherTable.foo, otherTable.bar...
That would select all columns from myTable
and columns foo
and bar
from otherTable
.
More Related Contents:
- How can I select data from different tables?
- Combine Multiple child rows into one row MYSQL
- What is the default MySQL JOIN behaviour, INNER or OUTER?
- MySQL cartesian product between two SELECT statements
- left join query keep a column empty
- What is better subquery vs literal on IN clause in mysql
- INNER JOIN ON vs WHERE clause
- SQL query return data from multiple tables
- SQL update from one Table to another based on a ID match
- How to use mysql JOIN without ON condition?
- Notice: Array to string conversion in
- When to use STRAIGHT_JOIN with MySQL
- MySQL – Selecting data from multiple tables all with same structure but different data
- mysql query show multiple tables from one ID column
- How to find non-existing data from another Table by JOIN?
- LEFT JOIN only first row
- How does MySQL’s ORDER BY RAND() work?
- MySQL #1093 – You can’t specify target table ‘giveaways’ for update in FROM clause
- Can I resolve this with pure mysql? (joining on ‘;’ separated values in a column)
- Select One Element in Each Row of a Numpy Array by Column Indices [duplicate]
- Compare only day and month with date field in mysql
- MySQL – SQL_BIG_SELECTS
- MySQL INNER JOIN select only one row from second table
- SQL SELECT from multiple tables
- how to use a like with a join in sql?
- Insert data into table with result from another select query
- How to use Table output from stored MYSQL Procedure
- MySQL ORDER BY rand(), name ASC
- Does a break statement break from a switch/select?
- MySQL Multiple Joins in one query?