I\'d like to do something like this:
SELECT table.id AS prefix_id, table.name AS prefix_name
... and have the prefix added dynamically to a
When you reference the results, you can reference each column by the tablename.column . Therefore you have a default prefix that is appended to each column name.
SELECT table.id,table.name,other.name FROM table,other Where other.name = table.name;