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

The Shares Amount is 24307000

The cusip is 05069A302
NOT OLD

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

update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '14.85' where entryId = '3726391'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '6.58' where entryId = '4129383'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '0.78' where entryId = '9753397'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '16.06' where entryId = '10227774'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '0' where entryId = '13817085'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '0' where entryId = '14458098'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '0' where entryId = '14959298'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '0' where entryId = '15008239'
update current13Fpositions set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' , percentOut = '9.05' where entryId = '19987648'
End Function

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

update archive13F set compid = '131073', sectorNum = '604003', sectorDes = 'Internet Software & Services', issuerCik = '0001077926' where entryId = '969941'
End Function
The Script is complete, exiting....