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

The Shares Amount is 66634000

The cusip is 458176104
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '458176104'
Number of Rows :6

update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '28.09' where entryId = '1264811'
update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '0' where entryId = '1599466'
update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '87.4' where entryId = '1733166'
update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '8.62' where entryId = '2832097'
update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '0' where entryId = '3578979'
update current13Fpositions set compid = '133256', sectorNum = '602001', sectorDes = 'Application Software', issuerCik = '0001020716' , percentOut = '0' where entryId = '3746674'
End Function

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

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