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

The Shares Amount is 28300000

The cusip is 040157109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '040157109'
Number of Rows :10

update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '0.01' where entryId = '1827084'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '24.84' where entryId = '2827426'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '90.54' where entryId = '3503415'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '41.94' where entryId = '3682404'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '14.22' where entryId = '3726272'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '1.33' where entryId = '7429442'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '7.85' where entryId = '9340838'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '5.86' where entryId = '9753342'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '254.13' where entryId = '10227489'
update current13Fpositions set compid = '131803', sectorNum = '303004', sectorDes = 'Property & Casualty Insurance', issuerCik = '0000800082' , percentOut = '1.33' where entryId = '12230518'
End Function

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

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