Home > Back-end >  Using the spring JDBC template queryforlist use question mark
Using the spring JDBC template queryforlist use question mark

Time:02-21

As title, I am using this method, the first parameter is the SQL calls this method, the second is the SQL parameters, there are question marks in SQL, SQL parameter is a string array,
So it is the result set is empty,
But I can change the question mark to values to it,

This statement in the question mark to replace database values can also be detected data,

Someone met this problem, really don't want to use string concatenation,

CodePudding user response:

Specific code??????

CodePudding user response:

I also encountered this problem solved?

CodePudding user response:

If the parameter types have a problem, it is suggested that using the Object array, and during the queryForList interface parameter types
  • Related