结论:
若存在 in () 语句,要使用 #{} 预编译入参的方式,需要在 mapper.xml里 使用 foreach
==========================================================================
我们来试验:
首先先用字符串:
===============================================
接下来试验在 mapper.xml里 使用 foreach
结论:
若存在 in () 语句,要使用 #{} 预编译入参的方式,需要在 mapper.xml里 使用 foreach
==========================================================================
我们来试验:
首先先用字符串:
===============================================
接下来试验在 mapper.xml里 使用 foreach