How does the MySQL string addition function run? I'm a stranger. Remember it.

Source: Internet
Author: User
Label: MySQL string

The following Article describes the actual operation scheme of the MySQL string addition function, we all know that in MySQL databases, the + operator cannot be used to actually connect MySQL strings. The Concat () function is required.

example:

   
 
  1. Update cdb_ex_site set viewlog = Concat (viewlog, http://www.cnblogs.com/qiantuwuliang/)

the preceding statement is the MySQL string http://www.cnblogs.com/qiantuwuliang/after the value of the viewlog field is appended.

the column cannot be directly added with the plus sign (+) ), the Concat function needs to be referenced.

example: Concat (string, Concat (column name, string ))

the preceding example contains two additions.

the string + string can be directly added to a common string.

MySQL the date type can be treated as a MySQL string

the above content is an introduction to the MySQL string addition function. I hope you will have some gains.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.