Oracle识别数据类型 [英] Oracle Identify Data Type

查看:95
本文介绍了Oracle识别数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个Oracle函数返回参数的数据类型?

Is there an Oracle function to return the data type of the parameter?

或者,确定我编写的查询中所有列的数据类型的最简单方法是什么?

Alternatively, what is the easiest way to determine the data type of all columns in a query that I've written?

推荐答案

返回一个VARCHAR2值,其中包含数据类型代码,长度(以字节为单位)和expr的内部表示形式.返回的结果始终在数据库字符集中.有关每个代码对应的数据类型,请参见表2-1.

returns a VARCHAR2 value containing the datatype code, length in bytes, and internal representation of expr. The returned result is always in the database character set. For the datatype corresponding to each code, see Table 2-1.

这篇关于Oracle识别数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆