我有这个查询
SELECT
table_1.*,
table_2.*
FROM
.....
表1和表2都具有相同的列名:
ID
Value
我想做的是像
SELECT
table_1.* AS 'prefix_1_'.*,
table_2.* AS 'prefix_2_'.*
FROM
.....
所以我最终会:
array(prefix_1_ID = X, prefix_1_Value = X, prefix_2_ID = Y, prefix_2_Value = Y)
这可能吗?