1_SQLserver,oracle,mySQL---连接值

来源:互联网 发布:淘宝已好评怎么修改 编辑:程序博客网 时间:2024/05/16 09:58


1.sqlserver 


使用 + 运算符进行连接操作

 select ename + 'work  as  a' + job as msg from emp  where deptno=10



2.Oracle,DB2,PostgreSQL 


 使用双竖线作为连接运算符

select * ename || 'work as a' || job as msg  from emp where deptno=10




3.mySQL 

 支出contact函数

select  contact(ename, 'work as',job)as msg  from emp where deptno=10