Someone can help me that how to use length() function with MyBatis3DynamicSql

瀏覽次數:37 次
跳到第一則未讀訊息

Lei Xue

未讀,
2020年11月29日 清晨7:45:352020/11/29
收件者:mybatis-user
I've been trying for dozens of hours ,have no idea,anyone can give me a simple example?

Lei Xue

未讀,
2020年11月29日 清晨7:46:522020/11/29
收件者:mybatis-user
length(column)=int?

Jeff Butler

未讀,
2020年11月29日 上午8:45:572020/11/29
收件者:mybati...@googlegroups.com
MyBatisDynamicSql doesn't have a built-in "length" function, but it is easy to create your own. You can use the the built-in "lower" function as a good example:


Jeff Butler


--
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/bbe51197-3317-40af-8279-1aae00c1fd6cn%40googlegroups.com.

Jeff Butler

未讀,
2020年11月29日 下午1:33:042020/11/29
收件者:mybati...@googlegroups.com
On second thought, "length" is probably a type converting function. Here's an example implementation:


Jeff Butler

回覆所有人
回覆作者
轉寄
0 則新訊息