I can easily select all my columns from a table with:
SELECT * FROM foo
But if I want to rename the column bar
in foobar
, I need to specify all the fields manually. This make my query not robust if a new column is added to the table:
SELECT a,b,c,d,bar AS foobar FROM foo
Is there a possibility to write something like
SELECT *, bar AS foobar from foo