它是什么是DBMS上下文中的BLOB [英] What is it exactly a BLOB in a DBMS context

查看:152
本文介绍了它是什么是DBMS上下文中的BLOB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 它是一个Blob?

  • 我如何使用它?

  • DBMS的Blob ,我想使用blob,但在任何DBMS中保存数据,然后用库读取blob ...?

推荐答案

BLOB:

BLOB > Binary Large Object )是数据库系统中的大对象数据类型。 BLOB 可以存储大量数据,文档类型,甚至媒体文件,如音频或视频文件。 BLOB 字段只有在字段中的内容被使用时才分配空间。 BLOB 以千兆字节为单位分配空间。

BLOB (Binary Large Object) is a large object data type in the database system. BLOB could store a large chunk of data, document types and even media files like audio or video files. BLOB fields allocate space only whenever the content in the field is utilized. BLOB allocates spaces in Giga Bytes.

使用BLOB:

USAGE OF BLOB :

code> BLOB )作为二进制或字符数据到数据库,具体取决于数据源中的字段类型。要向您的数据库写入 BLOB 值,请发出相应的 INSERT或UPDATE 语句,并将 BLOB 值作为输入参数。如果您的 BLOB 以文本形式存储(例如SQL Server文本字段),则可以将 BLOB 作为字符串参数。如果 BLOB 以二进制格式存储,例如SQL Server映像字段,则可以传递byte类型的数组作为二进制参数。

You can write a binary large object (BLOB) to a database as either binary or character data, depending on the type of field at your data source. To write a BLOB value to your database, issue the appropriate INSERT or UPDATE statement and pass the BLOB value as an input parameter. If your BLOB is stored as text, such as a SQL Server text field, you can pass the BLOB as a string parameter. If the BLOB is stored in binary format, such as a SQL Server image field, you can pass an array of type byte as a binary parameter.

一个有用的链接:将文档作为BLOB存储在数据库中 - 任何缺点?

这篇关于它是什么是DBMS上下文中的BLOB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆