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

The Shares Amount is 17852000

The cusip is 372910307
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '372910307'
Number of Rows :17

update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0.26' where entryId = '9754865'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '3.66' where entryId = '10236456'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '312.51' where entryId = '11208775'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '81.54' where entryId = '14378704'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '370.21' where entryId = '14581441'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0.21' where entryId = '17015208'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '359.01' where entryId = '17427040'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0' where entryId = '17801673'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0' where entryId = '17954017'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0' where entryId = '18824516'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '328.08' where entryId = '19049592'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '328.08' where entryId = '20377161'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0.28' where entryId = '21274013'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0.04' where entryId = '23171586'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0' where entryId = '23655450'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '0' where entryId = '24520518'
update current13Fpositions set compid = '130533', sectorNum = '901004', sectorDes = 'Oil & Gas Equipment & Services', issuerCik = '0000314606' , percentOut = '449.77' where entryId = '36527403'
End Function

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

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