ibatis 中能不能将SQL语句中的一段作为参数例如 where in (1,2);
答案:2 悬赏:30 手机版
解决时间 2021-03-26 11:23
- 提问者网友:姑娘长的好罪过
- 2021-03-25 12:38
ibatis 中能不能将SQL语句中的一段作为参数例如 where in (1,2);
最佳答案
- 五星知识达人网友:逐風
- 2021-03-25 13:28
试试str="(1,2,3)" ;
where id in #str#
where id in #str#
全部回答
- 1楼网友:拾荒鲤
- 2021-03-25 14:17
贴错误信息啊,ibatis是可以传一段Sql语句作参数的。追问严重: Servlet.service() for servlet [spring] in context with path [/yunwifi] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯