首页 > 编程知识 正文

ora30653,函数ora06502数字或值错误

时间:2023-05-06 17:10:08 阅读:162351 作者:2015

今天用oracle创建一个表的时候报错:Oracle ORA-01861: 文字与格式字符串不匹配 。

仔细检查了一下创表语句,并没有发现语法错误:

t_t_device表create table t _ device (id number (20,device_codevarchar2) 60 ) default ) ') not null, --设备编码设备名称GW_dev_codevarchar2(60 ) default ' ' not null, --对于子设备,相关联的网关设备对product_codevarchar2) 60 ) default )“”进行编码-所属的产品代码Del_flagnumber(11 ) default enable _ status number (11 ) default )0) not null,--0:无启用1:启用active_statusnumber(11 ) default(0)0) --0:无启用1:启用last _ online _ timedate default (1980/01/0100336000336000 ) -最近的在线时间create_timedefault -创建时间update_timedatedefault(sysdate ) not null,--上次更新时间device _ secrece -设备密钥firmware_versionvarchar2(60 ) default(''not null,--固件版本dev_hostvarchar2) 20 ) default ) ' ' ' not non -最近的在线主机地址dev_portnumber(11 ) default(0)0) not null,- -最近的在线端口constraint PK _ t _ device primary key

t_t_device表create table t _ device (id number (20,device_codevarchar2) 60 ) default ) ') not null, --设备编码设备名称GW_dev_codevarchar2(60 ) default ' ' not null, --对于子设备,相关联的网关设备对product_codevarchar2) 60 ) default )“”进行编码-所属的产品代码Del_flagnumber(11 ) default enable _ status number (11 ) default )0) not null,--0:无启用1:启用active_statusnumber(11 ) default(0)0) --0:无启用1:启用last _ online _ timedate default (to _ date (1980/01/0100336000:00 (yyyy-mm-ddhh 243330 -最近的在线时间create_timedatedefault(sysdate ) not null,- -创建时间update _ timedate -上次更新时间device_secretvarchar2(60 ) default (' ' ) not null, --设备密钥firmware_versionvarchar2) 60 ) default ) ') notnot -固件版本dev_hostvarchar2(20 ) default (“”) not --最近联机的主机地址dev_portnumber(11 ) default )0) not null,-最近联机的端口constraint PK _ t _ device primary key (iiii )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。