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

The Shares Amount is 7820000

The cusip is 09060C507
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '09060C507'
Number of Rows :10

update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0' where entryId = '132570810'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.01' where entryId = '132084679'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.05' where entryId = '132704349'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0' where entryId = '130469027'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '6.06' where entryId = '132240352'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.01' where entryId = '130792670'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.56' where entryId = '131706148'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.43' where entryId = '130858961'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '0.31' where entryId = '130752636'
update current13Fpositions set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' , percentOut = '1.28' where entryId = '131235643'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '09060C507'
Number of Rows :7

update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '129414903'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '128673817'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '127820476'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '129312712'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '129216242'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '129161000'
update archive13F set compid = '130679', sectorNum = '503008', sectorDes = 'Security & Protection Services', issuerCik = '0001019034' where entryId = '129662409'
End Function
The Script is complete, exiting....