sql - Oracle 中的 "||"运算符和 concat 函数有什么区别?

标签 sql database oracle

能否解释一下 Oracle 中 concat() 函数和 || 运算符之间的区别?

哪个在性能方面更好?

最佳答案

没有功能上的区别。

||是 ANSI 标准字符串连接运算符(但不幸的是,并非每个数据库 <cough>SQL Server</cough> 选择支持该标准)。许多数据库支持 CONCAT功能,因此使用 CONCAT 可能更容易移植代码到不同的数据库。

关于sql - Oracle 中的 "||"运算符和 concat 函数有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11403931/

相关文章:

c# - gridview显示+多个where子句

sql-server - 数据从 Postgres SQL_ASCII 数据库导入到 SQL Server 2008 R2

sql - Django 中大表的内存效率(常数)和速度优化迭代

mysql - mysql 在性能方面与 oracle 有何不同?

c# - C# 中的 PLSQL 过程参数

sql - Postgres : are two columns of TIMESTAMP type with DEFAULT NOW() guaranteed to be equal on row creation (unless updated)?

mysql UPDATE 语句 where Pricelist.import_date = ( SELECT max(pricelist.import_date) )

java - ResultSet 行计数通过 .getRow() 使用 JDBC-ODBC 和 MS Access 给出错误答案

database - couchdb 更新设计文档

c# - Oracle.DataAccess.Client.OracleException C#