How to use sql key word ‘in’ with SQL Builder Class

7 views
Skip to first unread message

demo

unread,
Nov 29, 2019, 9:41:44 PM11/29/19
to mybatis-user
I want to execute an SQL 

select * from user where id in (1,2,3,4)

how to use SQL Builder Class  to build this SQL 

Guy Rouillier

unread,
Nov 30, 2019, 1:50:12 AM11/30/19
to mybati...@googlegroups.com
Have you checked MyBatis User Guild for discussions and examples of SqlBuilder?  But beware before proceeding of this comment in the current version of the guild: "SelectBuilder and SqlBuilder classes have  been deprecated."  I've never used SqlBuilder myself, but after reading this, doesn't sound like a good idea to do any new code with this approach.

--
Guy Rouillier
--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/ef182fdf-b846-48fb-b8bb-7471929e30ee%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages