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

The Shares Amount is 9692000

The cusip is 46185W109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '46185W109'
Number of Rows :8

update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '3.3' where entryId = '14875134'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '61.39' where entryId = '15055817'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '52.21' where entryId = '15103652'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '60.36' where entryId = '16581258'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '22.67' where entryId = '19684719'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '22.67' where entryId = '19697784'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '0' where entryId = '24520938'
update current13Fpositions set compid = '130688', sectorNum = '107004', sectorDes = 'Computers Wholesale', issuerCik = '0001020017' , percentOut = '0' where entryId = '36595648'
End Function

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

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