test: FIND_IN_SET 的使用。

This commit is contained in:
Suomm 2023-08-17 08:59:40 +08:00
parent e0b5db1f3c
commit 06a68b19c4

View File

@ -68,8 +68,7 @@ public class FunctionSqlTest {
String sql = QueryWrapper.create()
.select()
.from(ACCOUNT)
// .where("FIND_IN_SET(?, `id`)", 100)
.where(findInSet(number(100), ACCOUNT.ID).eq(true))
.where(findInSet(number(100), ACCOUNT.ID).gt(0))
.toSQL();
System.out.println(sql);