mybatis
parameter processing A
single parameter does not do any processing
, multiple parameters will be encapsulated into a map (# is to go to the map to get the value of the key, or the parameter index can also be used)
For POJO, use #{attribute name} For
Map, use #{key }
${} is the direct replacement of sql
#{} is the opinion of the parment, you can set the jdbcType to handle the database type
parameter processing A
single parameter does not do any processing
, multiple parameters will be encapsulated into a map (# is to go to the map to get the value of the key, or the parameter index can also be used)
For POJO, use #{attribute name} For
Map, use #{key }
${} is the direct replacement of sql
#{} is the opinion of the parment, you can set the jdbcType to handle the database type