在mybatis中xml中不等于怎么写

2025-05-17 12:00:17
推荐回答(1个)
回答1:

例: select * from 表 where username = 'Tom' and id != 45

mybatis :
select * from 表 where

username = #{username} and id != #{id}