Subject | Re: [firebird-support] Moving a Blob |
---|---|
Author | Milan Babuskov |
Post date | 2007-03-28T18:05:51Z |
Stefan Heymann wrote:
wouldn't have to go "over the network" but would be transferred locally
on the server.
wrong), but what I know from the docs is that only the blob "pointer"
gets copied. If you overwrite the blob, a new "pointer" is created for
that new data, so you don't have to worry as your row in table2 would
still have the old "pointer".
--
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org
> How can I move a Blob from one table to another without transferringThis looks ok. Even if it would copy the blob (which I doubt it does) it
> it over the network?
>
> Is that possible?
>
> update table2
> set myblobfield =
> (select anotherblobfield from table1 where id=...)
wouldn't have to go "over the network" but would be transferred locally
on the server.
> Will it create another instance of the blob or just copy the blobI am not an expert on internals (so someone can correct me if I'm
> "pointer"? So if I overwrite the blob in table1 after that, will the
> blob in table2 also change or not?
wrong), but what I know from the docs is that only the blob "pointer"
gets copied. If you overwrite the blob, a new "pointer" is created for
that new data, so you don't have to worry as your row in table2 would
still have the old "pointer".
--
Milan Babuskov
http://www.guacosoft.com
http://www.flamerobin.org