Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Two names for a column

$
0
0

I have a column named foo in a table. I have constructed queries in scripts, which use this name.

I would now like to rename the column in the table to bar. This will break the scripts (there are several, but they could be changed if necessary). The table is referenced by other tables. I’d like to rename because the context of what is stored in that column has changed.

Is it possible to have two names for a column?


Viewing all articles
Browse latest Browse all 1138

Trending Articles