当前位置:网站首页>Bugs encountered in Oracle

Bugs encountered in Oracle

2022-06-23 09:57:00 CSDN Q & A

I am here java Add method in , Add role name , Here's the picture :

img


In this table id Is self increasing , I successfully added a piece of data .
Then the next step , Call the second add , Pictured :

img

Parameters in ,get To... In the previous method id, Here it is user_id, In the table , It's not self increasing , as well as role_id( This is OK , You can skip )
This process is in mysql Execution in environment , Very smoothly , But in oracle In the environment , In the last step :

img

mybatisplus How to keep it , An error is reported directly after execution :

img

Then I found a post , Guess it may be related to oracle Self increasing relation of , Because I didn't write a word : useGeneratedKeys="false"
But this post , Is in xml perhaps dao Written in , And I use mybatisplus Own method , So I don't know where to write , So I want to ask you , How to start
, Here is a link to this post
https://blog.csdn.net/u013709087/article/details/100705211?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165537184816781432997413%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=165537184816781432997413&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-3-100705211-null-null.142^v17^control,157^v14^new_3&utm_term=+useGeneratedKeys%3Dfalse&spm=1018.2226.3001.4187

The above is my guess , If you have other ideas , Leave a comment below , When I come tomorrow, I will check them one by one , thank you

原网站

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206161811040830.html