SELECT tblA.col1 as 'tblA.col1', tblB.col2 as 'tblB.col2', tblB.col3 as 'tblB.col3'
FROM tblA, tblB


Is there a way in SQL to have the column names prefixed by the table
name in a result set after a join?

Table A has column col1 and table B has columns col2 and col3

After the join I want the result set to have columns named

A.col1    B.col2     B.col3

Such that I can tell from which table each column came from.

Is this possible?

Matt Friedman

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to