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

The Shares Amount is 9100000

The cusip is 73935X633
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '73935X633'
Number of Rows :11

update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '18.68' where entryId = '10453658'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '0.55' where entryId = '10860440'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '6.18' where entryId = '14877297'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '0' where entryId = '18825706'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '29.03' where entryId = '23176044'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '0' where entryId = '32529665'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '0.77' where entryId = '42167089'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '0.25' where entryId = '42198133'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '1.32' where entryId = '42203317'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '5.36' where entryId = '42207391'
update current13Fpositions set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' , percentOut = '30.55' where entryId = '42498822'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '73935X633'
Number of Rows :2

update archive13F set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' where entryId = '19475081'
update archive13F set compid = '142433', sectorNum = '302002', sectorDes = 'Closed - End Fund - Debt', issuerCik = '9000000021' where entryId = '128389240'
End Function
The Script is complete, exiting....