Here is my query:
select * from a
JOIN B
ON
a.id=B.id
JOIN C
ON
B.id=C.id
How do I add one more col in the beginning called 'serial_id' which is auto incremental?
Ive seen examples here :MySQL query to select results with auto increment as a new column added in the result
But the solution doesn't work when i have joins in my select statement.