Linlearn

 使用的是ORACLE中的cast函数:

官方链接: https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions023.htm#SQLRF00613

简单版:

语句:select (cast( num1 as varchar(100)) || \'--\' || cast( num2 as varchar(100))) as num from tab1 where ...

输出: num1--num2

具体如果还不是不会用就看一下官方文档吧!!

 

分类:

技术点:

相关文章:

  • 2021-11-28
  • 2021-11-28
  • 2022-12-23
  • 2021-12-08
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-07-04
  • 2021-12-07
  • 2021-11-28
相关资源
相似解决方案