mssql-cli icon indicating copy to clipboard operation
mssql-cli copied to clipboard

Display table name/alias in columns with the same name when displaying results of join queries.

Open Astroxslurg opened this issue 4 years ago • 1 comments

When I join multiple tables I cannot distinguish between columns with the same name in output. E.g. if i join 3 tables together and every table has an "id"-column each of the columns has the same name making it very hard to tell which of the columns belong to which table.

Is there a way to make mssql-cli display table names or aliases in these results?

Astroxslurg avatar Aug 25 '21 10:08 Astroxslurg

Off the top of my head could you not just "AS" the fields ? (table1.id AS table1_id table2.id AS table2_id...etc)

chrisg123 avatar Sep 09 '21 23:09 chrisg123