Select fields to return in a SQL INNER JOIN

3

How do I get into a single SQL statement line, type SELECT * FROM table1 INNER JOIN table2 ON xxxxx , and the desired return would be all fields (columns) of table1 and only one field (column) of table2 ? >     

asked by anonymous 25.04.2017 / 16:49

1 answer

3

You will be able to prefixando (Alias) the tables:

SELECT TBL1.*, TBL2.seu_campo FROM table1 TBL1
INNER JOIN table2 TBL2 ON xxxxx

Related
How to select multiple columns using the table prefix only once?

    
25.04.2017 / 16:56