本文主要向大家介绍了MySQL数据库之MySQL concat函数 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。
Summary: In this tutorial, you will learn various ways to concatenate two or more string together by using concat function which is provided by MySQL.
Almost RMDMSs support us to concatenate two or more strings together by using different implementations. MS SQL server us operator plus (+) to concatenate strings. Oracle only allows you to concatenate two strings with concat function or operator ||. MySQL supports a more flexible way by enabling us to concatenate more than two strings or even concatenate strings with predefined separator. Let’s start with each concatenate function.
Concat Function
CONCAT(str1,str2,...)
The concat function is used to concatenate two or more string and returns concatenating string. If the arguments are numeric, they will be converted to strings before concatenating. If any of argument in the