Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select distinct on blob

Is there a way to verify if the value in blob in more rows is identical in the Oracle database? The blob is the same column.

I have the size of the blob stored in another column but I need to know if the value is equal too.

The value stored is a serialized object.

like image 342
Random42 Avatar asked Jan 22 '26 07:01

Random42


1 Answers

I would recommend adding another column which contains the hash of the blob value. When you store the blob you also calculate the hash value, using SHA256 for example, and store that. When you later want distinct values you just use this new column.

like image 157
Magnus Avatar answered Jan 23 '26 20:01

Magnus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!