Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> SQL Expert Question
Hi there:
Anyone can tell me what's the fastest way to UPDATE UpdA from table A, with the data from Field UpdB from Table B.
The two tables are almost equal and the inner join columns are Id1, Id2, Id3, but in the Table B the primary key is a Sequence column.
If i create an index (Id1, Id2, Id3) im table B it will be faster isnt it ?
How can i use the INDEX in the UPDATE sentence ?
Table A
Id1 * Id2 * Id3 *
Table B
Id1
Id2
Id3
F2
UpdB
Table A
UpdA Pos UPDATE Data 2105 1002 67 690 ... ... 1 1 ..... 6503 1002 67 690 ... ... 1 1 6643 1002 67 690 ... ... 1 2 6951 1002 67 690 ... ... 1 2
Table B
UpdB2105 1002 67 690 ... ... 1 .....
6503 1002 67 690 ... ... 1 6643 1002 67 690 ... ... 2 6951 1002 67 690 ... ... 2
(*) primary key
Please MAIL ME !!!
![]() |
![]() |