This should be a <duh> but I can't find the answer.
For example:
SELECT Company_Default s.CompanyID, Company.Company ID
FROM Company_Default s Left Join Company on Company_Default s.CompanyID =
Company.Company ID
Where Company.Company ID = 1
And Company_Default s.CompanyID = 1
This is over-simplified but it will give you the symptom.
With Access, Microsoft SQL Server, Sybase and Oracle, the resultset will
have the fields as Company.Company ID and Company_Default s.CompanyID.
With MySQL both fields are returned as just CompanyID. How do I get MySQL to
include the table names for identically named fields ?
TIA
Noah
For example:
SELECT Company_Default s.CompanyID, Company.Company ID
FROM Company_Default s Left Join Company on Company_Default s.CompanyID =
Company.Company ID
Where Company.Company ID = 1
And Company_Default s.CompanyID = 1
This is over-simplified but it will give you the symptom.
With Access, Microsoft SQL Server, Sybase and Oracle, the resultset will
have the fields as Company.Company ID and Company_Default s.CompanyID.
With MySQL both fields are returned as just CompanyID. How do I get MySQL to
include the table names for identically named fields ?
TIA
Noah
Comment