ORA-01438: value larger than specified precision allowed for this column

来源:互联网 发布:空调推荐 知乎 编辑:程序博客网 时间:2024/05/19 03:28

ORA-01438: value larger than specified precision allowed for this column

明眼一看就知道时字段长度不够

 

    insert into oss_addr_mon_stats_tmp06
     select    /*+use_hash(a,c)*/
     provcode,
     areacode,
     count(a.serialid) as self_group_serial_num  --统计自定义分组的联系人人数 tmp06
     from       oss_addr_mon_stats_tmp05  a
     inner join  oss_addr_mon_stats_tmp04  c on  a.usernumber=c.usernumber and a.groupid=c.groupid
     group by  provcode,areacode;

从生产库里跑这个语句,从结果上看没有数据太长啊,

并把结果拷到开发库里的对应表,插入也正常

-- Create table
create table OSS_ADDR_MON_STATS_TMP06
(
  SELF_GROUP_SERIAL_NUM NUMBER(10) default 0,
  PROVCODE              NUMBER(5) not null,
  AREACODE              NUMBER(5) not null
)

看下表结构 插入顺序反了 记一过

原创粉丝点击