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

查看所有标签

猜你喜欢:

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

Software Engineering for Internet Applications

Software Engineering for Internet Applications

Eve Andersson、Philip Greenspun、Andrew Grumet / The MIT Press / 2006-03-06 / USD 35.00

After completing this self-contained course on server-based Internet applications software, students who start with only the knowledge of how to write and debug a computer program will have learned ho......一起来看看 《Software Engineering for Internet Applications》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码