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

The Shares Amount is 38698000

The cusip is 670712108
NOT OLD

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

update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '0' where entryId = '3746579'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '18.16' where entryId = '10683574'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '119' where entryId = '12956972'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '125.46' where entryId = '13976085'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '1.2' where entryId = '14876724'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '331.44' where entryId = '14988106'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '125.46' where entryId = '15626944'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '364.08' where entryId = '16501174'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '0' where entryId = '17001090'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '124.53' where entryId = '17527265'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '65.4' where entryId = '17966841'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '6.77' where entryId = '18038663'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '124.53' where entryId = '18664692'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '65.4' where entryId = '19084227'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '358.58' where entryId = '22639207'
update current13Fpositions set compid = '130931', sectorNum = '601002', sectorDes = 'Computer Peripherals', issuerCik = '0000099047' , percentOut = '0' where entryId = '24521672'
End Function

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

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