I need to select from a database some tables with many columns. So I want to select
select t1.*,t2.*,t3.*
from table1 t1
left outer join table2 t2 on ...
left outer join tabl 3 t3 on ...
...
Some keys are identically named, but - due to the outer command - sometimes null. Unfortunately I cannot directly see whether the key comes from t1, t2 or t3. Is there any chance to add automatically the tablenames or another separating/distinguishing qualifier to all column names, i.e. t1_thekey, t2_thekey, t3_thekey ...?
SELECT *to be undesirable, because its meaning changes as the number of columns in the table may change. By explicitly listing out each column, you avoid this problem.