Oracle获取列数据大小

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

内容简介:我是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获取列数据大小》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

Microformats

Microformats

John Allsopp / friends of ED / March 26, 2007 / $34.99

In this book, noted web developer and long time WaSP member John Allsop teaches all you need to know about the technology: what Microformats are currently available and how to use them; the general pr......一起来看看 《Microformats》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具