Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设在我想要做的 sql 语句中:
WHERE numberOfCookies >= 10
我如何在 iBatis 中做到这一点?
因为 SQL 是用 xml 写的,所以不能只使用符号“>”,需要写成:
WHERE numberOfCookies >= 10
更新:
>大于
>
<少于
<
为什么它不起作用?
我能想到的唯一一件事是这个>角色在 XML 中表现不佳。在这种情况下,您可以将整个语句包装在<![CDATA[ ... ]]>
>
<![CDATA[ ... ]]>