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

The Shares Amount is 28232000

The cusip is 442120101
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '442120101'
Number of Rows :16

update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0.14' where entryId = '1264768'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '4.92' where entryId = '1733164'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '39.56' where entryId = '2207700'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '2337353'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0.04' where entryId = '2832013'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '1.54' where entryId = '3505264'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '13.21' where entryId = '3729903'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '4415187'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '18.67' where entryId = '6059220'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '6252655'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '35.42' where entryId = '6793600'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '9826219'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '10517132'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '10523335'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '10526731'
update current13Fpositions set compid = '130637', sectorNum = '901001', sectorDes = 'Independent Oil & Gas', issuerCik = '0001015293' , percentOut = '0' where entryId = '10538137'
End Function

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

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