Chinaunix

标题: 数据库导入数据时出错 [打印本页]

作者: chnwu    时间: 2008-08-11 18:00
标题: 数据库导入数据时出错
有一个数据文件,里面大概有1000行数据,导入数据库时报错 sqlcode=【-255】,查询了数据后发现中间大概是40-60行的数据没有导入,其他都导入了,这些数据格式都是一样的,请问这是什么原因呢?
作者: liaosnet    时间: 2008-08-11 19:16
这个比较无语...............

-255

__________________________________________________________

Not in transaction.

The database server cannot execute this COMMIT WORK or ROLLBACK WORK statement because no BEGIN WORK was executed to start a transaction. Because no transaction was started, you cannot end one. Any database modifications that were made are now permanent; they cannot be rolled back but do not need to be committed. Review the sequence of SQL statements to see where the transaction should have started.

This error can occur when you open a cursor for update and have not started a transaction yet.
作者: chnwu    时间: 2008-08-11 19:17
什么意思啊?
作者: liaosnet    时间: 2008-08-11 19:28
标题: 回复 #3 chnwu 的帖子
这个比较奇怪~~按理来说~同一个文件中不应该出现这样的问题的.要不然就全部报这个错,要不然就都正常的.....
作者: chnwu    时间: 2008-08-11 20:08
刚才沒描述对,所有的数据应该导入表sb,数据文件中40-60行的数据是新增加的,但格式是正确的,其他的数据在上次已经正常导入,现在导入时显示delete SBERROR! SQLCODE=[-255],好像是要删除原表sb中相同编号的记录再导入数据




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2