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

The Shares Amount is 11908000

The cusip is 23330F109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '23330F109'
Number of Rows :5

update current13Fpositions set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' , percentOut = '4.11' where entryId = '14873363'
update current13Fpositions set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' , percentOut = '147.32' where entryId = '17560617'
update current13Fpositions set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' , percentOut = '104.97' where entryId = '18842030'
update current13Fpositions set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' , percentOut = '147.32' where entryId = '18848111'
update current13Fpositions set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' , percentOut = '0' where entryId = '24520114'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '23330F109'
Number of Rows :4

update archive13F set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' where entryId = '96371636'
update archive13F set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' where entryId = '99541095'
update archive13F set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' where entryId = '101301100'
update archive13F set compid = '135919', sectorNum = '102003', sectorDes = 'Electronic Equipment', issuerCik = '0000853695' where entryId = '104778494'
End Function
The Script is complete, exiting....