I have this query
SELECT
table_1.*,
table_2.*
FROM
.....
Table 1 and table 2 both have the same column names:
ID
Value
What I want to do is something like
SELECT
table_1.* AS 'prefix_1_'.*,
table_2.* AS 'prefix_2_'.*
FROM
.....
So I would end up with:
array(prefix_1_ID = X, prefix_1_Value = X, prefix_2_ID = Y, prefix_2_Value = Y)
Is this possible?