Simple learning of mysql blob

Source: Internet
Author: User

Mysql blob's simple learning Blob has the advantage of ignoring the type of stored files. images, files, and compressed packages are stored in binary files;

The disadvantage is that if large files (such as multimedia files) are stored, the efficiency of the database will certainly be affected. Mysql blob can be divided into four types (in bytes): TinyBlob 255 www.2cto.com Blob 65 k MediumBlob 16 M LongBlob 4G if you want to store ultra-large files, it is best to store them on the server, only the path in the database is retained.

You can also store the file information and file content in two tables, and query the operation file content table only when you need to read the file content. From the wkupaochuan Column

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.