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

The Shares Amount is 4755000

The cusip is 74964Q101
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '74964Q101'
Number of Rows :9

update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '79.16' where entryId = '14267528'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '1.05' where entryId = '14679929'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '73.04' where entryId = '15811266'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '1.05' where entryId = '16196299'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '99.96' where entryId = '17137816'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '316.85' where entryId = '17205164'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '1.05' where entryId = '17979948'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '64.77' where entryId = '18571135'
update current13Fpositions set compid = '151543', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '0001385617' , percentOut = '1.05' where entryId = '19149702'
End Function

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

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