所有池基本思想都差不多,这个我一会儿再来进行描述,我先提一个类型 BOLB,这个数据类型可以用来存储图像、音频、视频、文档等任意二进制数据 MySQL中,BLOB是一个二进制大型对象,是一个可以存储大量数据的容器,它能容纳不同大小的数据。 插入BLOB类型的数据必须使用PreparedStatement,因为BLOB类型的数据无法使用字符串拼接写的。 MySQL的四种BLOB类型(除了在存储的最大信息量上不同外,他们是等同的) 四种BLOB类型 实际使用中根据需要存入的数据大小定义不同的BLOB类型。 需要注意的是:如果存储的文件过大,数据库的性能会下降。 如果在指定了相关的Blob类型以后,还报错:xxx too large,那么在mysql的安装目录下,找my.ini文件加上如下的配置参数: max_allowed_packet=16M。同时注意:修改了my.ini文件之后,需要重新启动mysql服务。 1.在创建表时,可以使用下列语法指定BLOB列的类型: CREATE TABLE table_name ( column_name BLOB );...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with .setInitial
Contact .setInitial, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack