Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一列定义为 varchar(19)。所以它可以有字母数字值。我已经将它转换为整数。简单的强制转换会产生溢出异常,如果我想将其格式化为 Z(9) 或 '999999999',它会显示错误提示列具有数字、字符和图形值的组合
我还有另一个转换,该列被定义为十进制(13,3),我需要将它转换为整数。我在这里也不太清楚。
有什么想法吗?
VARCHAR(19) 将超出 Teradata 中 INTEGER 数据类型的上限。
请改用 BIGINT 或 DECIMAL(19,0)。