Q: If I have two tables joined together, and I want to get (*) from the first table, I mean all the fields of the first table.
Shall I write all the fields names of the first table in the query? Or is there some way to select * just from the first table.
You should not to list all the fields, see the example:
SELECT DISTINCT t1.*
from T1
join t2 on condition
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With