SELECT * FROM tickets AS ticket JOIN customers AS customer ON ticket.customer = customer.id LIMIT 10
How can I make it so that the keys in the selection are prepended with their respective table names? Like if tickets had the columns id, customer, and notes - and customers had id, name, and phone - in order to access those two I would have to use ticket.id, ticket.customer, ticket.notes, customer.id, and so on and so forth? Is there any way of doing this without specifying every column using SELECT column AS table.column?

New Topic/Question
Reply




MultiQuote







|