1

When working with Oracle is it possible to select multiple columns at once and assign them each an alias? I have Googled around but can't seem to come up with a straight answer. An example of what I want to do would be something like:

SELECT prod_id, prod_name AS "Product ID", "Product Name" FROM tbl_products

When I run this I get the error: ORA-00904: "Product Name": invalid identifier

Any advice?

4

1 回答 1

1

我想你的意思是这样的:

SELECT prod_id AS "Product ID", prod_name AS "Product Name" FROM tbl_products
于 2012-05-21T09:25:27.763 回答