Would it be possible to explain the difference between the concat() function and the || operator in Oracle?
Which one is better in terms of performance?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no functional difference.
||is the ANSI standard string concatenation operator (though, unfortunately, not every database<cough>SQL Server</cough>chooses to support the standard). Many databases support aCONCATfunction so it may be easier to port code usingCONCATto different databases.