Home > Back-end >  Mybatis how to remove the json object batch delete the values in the do
Mybatis how to remove the json object batch delete the values in the do

Time:10-22



For bosses to a train of thought or case

CodePudding user response:

Traverse the id out into an array, the array is passed to the mybatis forEach traversal can be deleted

CodePudding user response:

Access to all the id of the content, Mosaic an in (id1, id2, id3) this kind of data, can be used in removing

CodePudding user response:

The json object is convenient to digital List

: loop specify an alias for each loop data index: subscript open loop cycle: began to close: end of the separator, the separator between elements in an array, & gt;
The delete from emp where empno in
The separator=", "close=") "& gt;
# {arr}

  • Related