Access 中的 T-SQL numeric(x, y) 等效数据类型
T-SQL numeric(x, y) equivalent data type in Access
我有一个 table 定义(来自 SQL 服务器),其中包含 abc numeric(22,6)
或 bce numeric(9,5)
或 mnp numeric(20,10)
等列。
我必须保持这些精确度。 Access 2010 中哪种数据类型等效?
我尝试了 Double
,但它不适用于我的目标 table(它具有上面的数据类型)。
我想也许 Decimal
会起作用,但是当我使用 SSIS 导出数据时,这也会引发转换错误。
可能是我设置不正确。 在 Access 中 您会用什么来创建 numeric(22,6)
? decimal (precision, scale, decimal places)
?我试过 (22, 6, auto)
.
What would you use for a numeric(22,6) in Access?
Decimal(22,6)
肯定是Access中对应的字段类型。我刚刚使用了
External Data > Import & Link > ODBC Database
Access 2010 中的功能可以像这样导入 SQL 服务器 table
CREATE TABLE [dbo].[NumericTest](
[id] [int] IDENTITY(1,1) NOT NULL,
[numericcol] [numeric](22, 6) NULL,
...
并且生成的 Access table 确实有一个 Decimal(22,6)
列 ...
...所以是可能的。
我有一个 table 定义(来自 SQL 服务器),其中包含 abc numeric(22,6)
或 bce numeric(9,5)
或 mnp numeric(20,10)
等列。
我必须保持这些精确度。 Access 2010 中哪种数据类型等效?
我尝试了 Double
,但它不适用于我的目标 table(它具有上面的数据类型)。
我想也许 Decimal
会起作用,但是当我使用 SSIS 导出数据时,这也会引发转换错误。
可能是我设置不正确。 在 Access 中 您会用什么来创建 numeric(22,6)
? decimal (precision, scale, decimal places)
?我试过 (22, 6, auto)
.
What would you use for a numeric(22,6) in Access?
Decimal(22,6)
肯定是Access中对应的字段类型。我刚刚使用了
External Data > Import & Link > ODBC Database
Access 2010 中的功能可以像这样导入 SQL 服务器 table
CREATE TABLE [dbo].[NumericTest](
[id] [int] IDENTITY(1,1) NOT NULL,
[numericcol] [numeric](22, 6) NULL,
...
并且生成的 Access table 确实有一个 Decimal(22,6)
列 ...
...所以是可能的。