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

The Shares Amount is 9000000

The cusip is 45765K105
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '45765K105'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '45765K105'
Number of Rows :19

update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '67143286'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '65981534'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '63597965'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '69930869'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '70838059'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '72177339'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '74309733'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '76749338'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '90582570'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '92323452'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '95097870'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '97406548'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '99909855'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '101973194'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '105402882'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '106695574'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '110001457'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '111654878'
update archive13F set compid = '159809', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004275' where entryId = '114770072'
End Function
The Script is complete, exiting....