Is there any way to group by all the columns of a table without specifying the column names? Like:
select * from table group by *
No because this fundamentally means that you will not be grouping anything. If you group by all columns (and have a properly defined table w/ a unique index) then SELECT * FROM table is essentially the same thing as SELECT * FROM table GROUP BY *.
SELECT * FROM table
SELECT * FROM table GROUP BY *