Inserting Binary data into MySQL (without PreparedStatement's)

前端 未结 3 1297
猫巷女王i
猫巷女王i 2021-01-12 16:05

I\'m trying to insert some Binary data into a MySQL database without using prepared statements. The reason for this is that I concatenate thousands of statements into a sing

3条回答
  •  迷失自我
    2021-01-12 16:21

    A prepared statement is undoubtedly the fastest approach. The reason that you find it too slow might be because you are not using it inside a transaction. You might be able to do something cute with base 64, but it would be very slow.

提交回复
热议问题