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: : 130634
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '130634'

The Shares Amount is 52775000

The cusip is 130872104
NOT OLD

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

update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '3168031'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0.89' where entryId = '3503811'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '3685634'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '3.84' where entryId = '3727038'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '14.19' where entryId = '10229945'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '10547064'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '75.79' where entryId = '12341326'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '3.79' where entryId = '12466040'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '3.22' where entryId = '12956686'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '13817316'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '75.79' where entryId = '13850699'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '3.79' where entryId = '13933059'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '1.77' where entryId = '14872604'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '75.79' where entryId = '15335469'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '459.65' where entryId = '16693504'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '16955154'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0.72' where entryId = '17014595'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '17104091'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '501.9' where entryId = '18290839'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '18657936'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '532.02' where entryId = '19663724'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '503.32' where entryId = '21351107'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '21430143'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '5.78' where entryId = '22449081'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0.16' where entryId = '23168761'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '265.61' where entryId = '23245227'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '24519552'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '2.04' where entryId = '29138041'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '29981640'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '2.81' where entryId = '32165801'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '2.64' where entryId = '33103081'
update current13Fpositions set compid = '130634', sectorNum = '603003', sectorDes = 'Scientific & Technical Instruments', issuerCik = '0001014672' , percentOut = '0' where entryId = '41123326'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '130872104'
Number of Rows :0

End Function
The Script is complete, exiting....