G
G
Grigory Dikiy2016-11-27 10:27:35
MySQL
Grigory Dikiy, 2016-11-27 10:27:35

Blob field update?

Good afternoon! There is a database with a field of type blob. One of the records stores the data I need and I want this data to be in all records of this field.
ecd5a3a9b5ba484a9eb2ecea90aaedbe.png
How can I make sure that all records have the same values ​​for this field? I tried the usual Update table_name set column_name=value_in_blob , which did not help.
I would be grateful for help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2016-11-27
@Sumor

If I understand correctly, then something like this (substitute your own table name, columns):

UPDATE table
SET
[blob] = (SELECT [blob] FROM table WHERE id = 555)
WHERE id != 555

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question