SQL0413N Overflow occurred during numeric data type conversion.

hellocuhk 2009-09-08 07:41:58
CREATE TABLE Branch(
name varchar(15) NOT NULL,
city varchar(15) NOT NULL,
asset NUMERIC NOT NULL,
PRIMARY KEY(name));
INSERT INTO Branch VALUES('Downtown', 'Brooklyn', 900000);

一个很简单的指令吧,为什么出现错误呢?


insert into branch values ('Redwood', 'Palo Alto', 2100000)
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0413N Overflow occurred during numeric data type conversion.
SQLSTATE=22003

SQL0413N Overflow occurred during numeric data type conversion.

Explanation:

During processing of the SQL statement, an overflow condition arose when
converting from one numeric type to another. Numeric conversion is
performed according to the standard rules of SQL.

Federated system users: numeric conversion can occur at the federated
server, at data sources, or both.

The statement cannot be processed. No data was retrieved, updated, or
deleted.

请问如何解决?
...全文
2646 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
quiettown 2009-09-09
  • 打赏
  • 举报
回复
你定义明确吧,numeric数据类型默认的不超过99999.
liyan93834183 2009-09-09
  • 打赏
  • 举报
回复
NUMERIC是数值类型的统称,不是具体的数据类型
liyan93834183 2009-09-09
  • 打赏
  • 举报
回复
Overflow occurred during numeric data type conversion
数据溢出

5,891

社区成员

发帖
与我相关
我的任务
社区描述
IBM DB2 是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBM i(旧称OS/400)、z/OS,以及Windows服务器版本
社区管理员
  • DB2
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧