Oracle使用||与concat实现字段或字符串拼接 |
发表者:admin分类:数据库2022-10-11 17:55:09 阅读[450] |
Oracle使用||与concat实现字段或字符串拼接
SQL> select first_name||'''s SALARY is : '||salary as "name,sal" from employees e where e.employee_id=100;
name,sal
----------------------------------------------------------------------------
Steven's SALARY is : 24000
SQL> select concat(first_name||' ',salary) as "name,sal" from employees e where e.employee_id=100;
name,sal
-------------------------------------------------------------
Steven 24000
SQL> select concat(first_name||'''s salary is ',salary) as "name,sal" from employees e where e.employee_id=100;
name,sal
-------------------------------------------------------------------------
Steven's salary is 24000
转载请标明出处【Oracle使用||与concat实现字段或字符串拼接】。
《www.micoder.cc》
虚拟化云计算,系统运维,安全技术服务.
Tags: | [阅读全文...] |
最新评论