从oracle里用exp导出了一个表,怎么没法插入到已经建好表结构的sybase数据库中?
我只保留了insert语句,删除了红字部分,但当我在sybase里面执行的时候,提示错误 incorrect syntax near';' sybase错误代码=102,sqlstate="42000" line2,请问怎么解决
prompt PL/SQL Developer import file
prompt Created on 2009年5月21日 星期四 by Administrator
set feedback off
set define off
prompt Disabling triggers for CFG_ALARMTYPE...
alter table CFG_ALARMTYPE disable all triggers;
prompt Deleting CFG_ALARMTYPE...
delete from CFG_ALARMTYPE;
prompt Loading CFG_ALARMTYPE...
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (50, '硬件接口板卡类告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (53, '硬件射频类告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (54, '硬件其它类', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (55, '系统内部通信告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (56, '性能告警无线-系统软件告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (57, '硬件内部交换类告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (58, '硬件时钟类告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (3, '环境告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (1, '通信告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (4, '设备告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (2, '服务质量告警', '3', 1);
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT)
values (13, '其他类告警', '3', 1);
prompt 12 records loaded
prompt Enabling triggers for CFG_ALARMTYPE...
alter table CFG_ALARMTYPE enable all triggers;
set feedback on
set define on
prompt Done.
[解决办法]
单独执行一下这句
insert into CFG_ALARMTYPE (ID, ALARMTYPE, NE_LEVEL, ISEFFECT) values (50, '硬件接口板卡类告警', '3', 1);
另外检查一下你的CFG_ALARMTYPE表结构。不否数据类型匹配。