比如下面的语句

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

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

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

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

 

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2021-06-12
猜你喜欢
  • 2021-09-12
  • 2021-05-19
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
相关资源
相似解决方案