I use PreparedStatement setstring assignment to SQL statements, because the SQL statement is fuzzy query: select * form user where Name like '%? % ', he can't identify the question mark as a result, the old said I parameter overflow, I removed the quotes and percent can again... Pray god explain reason
CodePudding user response:
Or by SQL can normal operation: Select * form the user where the name like?
Assignment Value is "%" (you replace the actual value) + + XXX "%" is ok,