Dameng database: Error updating database. Cause: dm.jdbc.driver.DMException: Data not found

Exception: Error updating database. Cause: dm.jdbc.driver.DMException: Data not found

insert image description here

When 达梦数据库inserting or updating data in batches, I reported an error that I had never encountered before. At that time, there were only a few pieces of data in the batch of data I gave that could not be inserted. I checked the syntax and data types, and there was no problem; When I got here, people were all numb, and the exception of the code error was only. 数据未找到Later, when I got the data and executed it in the SQL tool, I found that there was a trigger that reported an error; this trigger will be based on the inserted one every time new data is added. Field to check whether there is data in other tables, and later disable this trigger, and all data can be inserted normally.
Record it this time, so as to avoid the same problem next time, you can use it as a reference.

trigger, trigger, trigger

Guess you like

Origin blog.csdn.net/weixin_45626288/article/details/132233345