Oracle 字符拼接

 使用的是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

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

 

posted @ 2019-06-21 15:49  我等你,你等风来  阅读(274)  评论(0编辑  收藏  举报