Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任务是:
将指定目录中的所有文件加载到表中,加载到 BLOB 类型的字段中
令我困惑的是,所有文件都将写入一个BLOB 字段。
是否有可能以有意义的方式进行,以便我们以后可以从 BLOB 字段中读取单独的文件?
我想到的是在写入 blob 时在每个文件之间使用某种分隔符。
一点帮助?
一种方法是将每个文件保存在单独的 blob 中,每个文件都在自己的行中(具有相同的 DIRECTORY_ID): 如果您真的确定永远不会更改数据,则可以将其存储在一个 BLOB 中,压缩此目录的内容. 如果有疑问,请选择第一个选项。 M_DIRECTORY FILE_NAME FILE_CONTENT(blob) 1 abc.txt [content of the file] 1 a.zip [content of the file]
M_DIRECTORY FILE_NAME FILE_CONTENT(blob) 1 abc.txt [content of the file] 1 a.zip [content of the file]