Re: Oracle 10g Copy Blob
- From: "Michel Cadot" <micadot{at}altern{dot}org>
- Date: Wed, 30 Aug 2006 19:17:52 +0200
<mman37x@xxxxxx> a écrit dans le message de news: 1156957971.557379.214950@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Michel Cadot wrote:
"Aimyee" <gaz1972@xxxxxxxxx> a écrit dans le message de news: 1156955498.018755.287530@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|I have a blob column A in table T1 I Need to move this column to column
| B in table T2.
|
| I need to do this for about 500,000 records.
|
| CAN I do this via PL/SQL?
|
| Thank in advance!!
|
For instance:
insert into T2 (B) select A from T1;
update T2 set b=(select a from T1 where t1.id = t2.id);
Is this new for 10G? This didn't work for BLOBs (or any binary fields)
in previous versions.
------------------------------------------------
SQL> create table a (c blob);
Table created.
SQL> insert into a values ('aaaa');
1 row created.
SQL> create table b (c blob);
Table created.
SQL> insert into b select * from a;
1 row created.
SQL> update b set c=(select c from a);
1 row updated.
SQL> @v
Version Oracle : 9.2.0.6.0
Regards
Michel Cadot
.
- References:
- Oracle 10g Copy Blob
- From: Aimyee
- Re: Oracle 10g Copy Blob
- From: Michel Cadot
- Re: Oracle 10g Copy Blob
- From: mman37x
- Oracle 10g Copy Blob
- Prev by Date: Re: Limiting Large Result Sets
- Next by Date: Re: Transfer data from oracle to oracle using sqlplus only
- Previous by thread: Re: Oracle 10g Copy Blob
- Next by thread: OMWB for image data?
- Index(es):
Relevant Pages
|