I can easily select all my columns from the table:
SELECT * FROM foo
But if I want to rename the column barto foobar, I need to specify all the fields manually. This makes my query unstable if a new column is added to the table:
SELECT a,b,c,d,bar AS foobar FROM foo
Is it possible to write something like
SELECT *, bar AS foobar from foo
nowox source
share