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.
Grails 中是否有内置函数来转义 SQL 中的特殊字符?我知道 prepare 是正确的命令,我的程序已经有动态 sql 寻找选项来转义特殊字符。
谢谢
在 Grails 和现代框架中,考虑使用 HQL 而不是 SQL。这篇文章可能对你有用:http: //www.intelligrape.com/blog/tag/sql-injection-attack/