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

The Shares Amount is 32404000

The cusip is 628858102
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '628858102'
Number of Rows :5

update current13Fpositions set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' , percentOut = '7.35' where entryId = '3506149'
update current13Fpositions set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' , percentOut = '0' where entryId = '3685737'
update current13Fpositions set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' , percentOut = '14.78' where entryId = '3731769'
update current13Fpositions set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' , percentOut = '0' where entryId = '7537008'
update current13Fpositions set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' , percentOut = '0' where entryId = '9169486'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '628858102'
Number of Rows :2

update archive13F set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' where entryId = '6313105'
update archive13F set compid = '130708', sectorNum = '503001', sectorDes = 'Business Services', issuerCik = '0001022608' where entryId = '7531534'
End Function
The Script is complete, exiting....