【发布时间】:2021-11-01 21:50:24
【问题描述】:
我有 excel 我正在尝试将其导入 oracle 数据库表中。
excel 中的某些值由例如14:39.5 和双冒号组成。我应该在 oracle 数据库表中提供什么数据类型来存储这个值?
目前已给出varchar 数据类型,并在导入时抛出错误:
Conversion error! Value: "00:12:01.615518000" to data type: "Number". Row ignored! Value is '00:12:01.615518000'. Cannot be converted to a decimal number object. Valid format: 'Unformatted'
【问题讨论】:
-
您说“当前已给出 varchar 数据类型”,但错误提示您将其声明为 NUMBER。那么它是哪一个?我建议您首先更新您的问题以显示表格的 DDL。并准确解释“14:39.5”实际代表什么。它应该是一天中的某个时间吗?过去的时间?完全不同的东西?
标签: excel oracle sqldatatypes varchar2