Oracle获取列数据大小

栏目: 数据库 · 发布时间: 6年前

内容简介:我是Oracle数据库的新手,我想知道我是否可以找到数据类型和datasize …我的意思是:假设我在表“products”中有varchar2(20)类型的列“location”.我能写一个会在结果“varchar2”和“20”中返回我的查询吗?

我是Oracle数据库的新手,我想知道我是否可以找到数据类型和datasize …

我的意思是:假设我在表“products”中有varchar2(20)类型的列“location”.

我能写一个会在结果“varchar2”和“20”中返回我的查询吗?

谢谢!

查看 user_tab_columns .
select data_type, data_length 
  from user_tab_columns
 where table_name = 'PRODUCTS'
   and column_name = 'LOCATION';

翻译自:https://stackoverflow.com/questions/4979515/oracle-get-column-data-size


以上所述就是小编给大家介绍的《Oracle获取列数据大小》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Linux Programming Interface

The Linux Programming Interface

Michael Kerrisk / No Starch Press / 2010-11-6 / GBP 79.99

The Linux Programming Interface describes the Linux API (application programming interface)-the system calls, library functions, and other low-level interfaces that are used, directly or indirectly, b......一起来看看 《The Linux Programming Interface》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

html转js在线工具
html转js在线工具

html转js在线工具