MySQL blob: how to get just a subset of the stored data

后端 未结 3 1234
一个人的身影
一个人的身影 2021-01-27 05:10

I would like to use MYSQL as a storage system for a huge number of files. I would like to read/write just a portion of the data stored in a column (data is stored as bytes) so I

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-27 05:46

    You could use e.g. MID() [1] to cut portions of the BLOB; though I would prefer to store files in the file system, not in a database. MySQL performs rather poor on BLOBs.

    [1] http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_mid

提交回复
热议问题