To do multible compids, use the following script:
php /var/www/html_j3sg/institutions/ChangeCompidOfAllInstitutionalAfewCompaniesAtATime.php
Please note that the script mentioned above (ChangeCompidOfAllInstitutionalAfewCompaniesAtATime) only updates the current13FFilingpositions table, no archived tables.

This script actual updates 13F current table as well as both archive13F tables.

We got coming in compid: : 130849
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '130849'

The Shares Amount is 55415000

The cusip is 071707103
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '071707103'
Number of Rows :32

update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '2.53' where entryId = '1223494'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '1.22' where entryId = '1264189'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '1.37' where entryId = '1701033'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '1827127'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '18.79' where entryId = '2827460'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '5.41' where entryId = '2830934'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '25.55' where entryId = '3031299'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '7.85' where entryId = '3503594'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '3685644'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '6.86' where entryId = '3726585'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.67' where entryId = '3916481'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '4436112'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '469.1' where entryId = '4551986'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '5415628'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '12.96' where entryId = '7306003'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '7.64' where entryId = '8638166'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '5.65' where entryId = '9340911'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.43' where entryId = '9679345'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '2.78' where entryId = '9753519'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '71.06' where entryId = '10228472'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '10547066'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '1.01' where entryId = '11264238'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '13.17' where entryId = '11272392'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.6' where entryId = '11387586'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '11980897'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '12230529'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '12390467'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '12556445'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0' where entryId = '13401795'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.04' where entryId = '13628155'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.75' where entryId = '16680730'
update current13Fpositions set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' , percentOut = '0.76' where entryId = '16681810'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '071707103'
Number of Rows :1

update archive13F set compid = '130849', sectorNum = '402006', sectorDes = 'Medical Instruments & Supplies', issuerCik = '9000000531' where entryId = '969947'
End Function
The Script is complete, exiting....