oracle 如何更改返回值的列标题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9298345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:36:46 来源:igfitidea点击:
How do I change column headers on a return value?
提问by Robert
I am trying to return everything in my table but I want to change the column headings ONLY when it gets returned.
我正在尝试返回表中的所有内容,但我只想在返回时更改列标题。
SELECT * FROM d_cds
That returns all the values from the table under the original column headings. How would I display them with different headings?
这将返回原始列标题下表中的所有值。我将如何以不同的标题显示它们?
回答by Diego
SELECT yourColumn as NameYouWant FROM d_cds