Sql中存在斜杠“/”怎么办?

比如下面的语句

select concat(name,'/',description) from table1

这样的语句在数据库访问工具中执行没问题,到java中就报错。

解决办法也很简单,用单引号 ' 进行转义就行,如下:

select concat(name,''/'',description) from table1

原文地址:https://www.cnblogs.com/heyang78/p/7611231.html