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

The Shares Amount is 32614000

The cusip is 44043J204
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '44043J204'
Number of Rows :7

update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '4.64' where entryId = '5637407'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '3.89' where entryId = '9755116'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '154.24' where entryId = '9896627'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '49.06' where entryId = '10023482'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '28.01' where entryId = '10237909'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '97.69' where entryId = '11103151'
update current13Fpositions set compid = '130910', sectorNum = '702004', sectorDes = 'Heavy Construction', issuerCik = '0001051431' , percentOut = '0' where entryId = '13401925'
End Function

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

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