Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my sql query I used basic update sql query but in there a data, where my update sql query using that data to set operation but my data is null. I want to using mybatis when data is null don't update how to solve that problem?

What I have tried:

I tried many mybatis if condition but couldn't work.
Posted
Comments
Richard MacCutchan 26-Aug-22 7:51am    
"I tried many mybatis if condition but couldn't work."
Sorry, no one here can possibly guess what your code is doing or what problems you have had. Please use the Improve question link above, and add complete details of what is not working.
OriginalGriff 26-Aug-22 7:58am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.

1 solution

Detailed explanation of Mybatis knowledge points and solutions to problems encountered, dynamic agent, annotation and reflection
Posted by PetrZagvazdin on Sun, 19 Dec 2021 18:00:50 +0100

1.Mybatis:
First meet Mybatis:
Introduction to MyBatis
Environmental description:
jdk 8 +
MySQL 5.7.19
maven-3.6.1
IDEA
Before learning, you need to master:

JDBC
MySQL
Java Foundation
Maven
Junit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900