java - MyBatis动态SQL实现ORDER BY和LIMIT的控制?
大家讲道理
大家讲道理 2017-04-18 10:48:56
0
1
973

MyBatis如果想用动态SQL实现ORDER BY和LIMIT语句的运行与否,怎么办?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
黄舟

I’m not sure about your needs, but you can try adding the @SelectProvider annotation to the mapper interface. By customizing the sql, you can process the sql differently based on the parameters. Similarly, there are @UpdateProvider, @ DeleteProvider, @InsertProvider these annotations.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template