如何在 Oracle 中检查列是虚拟的?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8074963/
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:26:10  来源:igfitidea点击:

How to check column is virtual in Oracle?

sqloracle

提问by Alex Yeung

How to check if a column is virtual in Oracle?

如何在 Oracle 中检查列是否是虚拟的?

回答by Justin Cave

You can use the VIRTUAL_COLUMNcolumn of USER_TAB_COLS(or ALL_TAB_COLSor DBA_TAB_COLSdepending on what privileges you have and what user owns the table in question.

您可以使用VIRTUAL_COLUMN的列USER_TAB_COLS(或ALL_TAB_COLSDBA_TAB_COLS取决于你所拥有的权限,哪些用户拥有问题的表。

SELECT virtual_column
  FROM all_tab_cols
 WHERE owner = <<owner of the table>>
   AND table_name = <<name of table>>
   AND column_name = <<name of column>>