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

The Shares Amount is 52980000

The cusip is 640933107
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '640933107'
Number of Rows :9

update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '76.17' where entryId = '1728296'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '3.85' where entryId = '3031633'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '34.47' where entryId = '3682768'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '12.26' where entryId = '3731794'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '18.88' where entryId = '6416531'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '0' where entryId = '9826291'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '19.64' where entryId = '10243595'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '0.01' where entryId = '12131700'
update current13Fpositions set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' , percentOut = '0.01' where entryId = '15054324'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '640933107'
Number of Rows :3

update archive13F set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' where entryId = '6313042'
update archive13F set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' where entryId = '6313106'
update archive13F set compid = '130799', sectorNum = '301010', sectorDes = 'Savings & Loans', issuerCik = '0001035826' where entryId = '6313205'
End Function
The Script is complete, exiting....