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

The Shares Amount is 9000000

The cusip is 21988T207
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '21988T207'
Number of Rows :0

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '21988T207'
Number of Rows :16

update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '67753922'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '65810625'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '63880580'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '69344678'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '71115341'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '73784683'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '72549409'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '74492780'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '76723331'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '76763400'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '78201992'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '80361759'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '81960451'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '85465321'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '86836081'
update archive13F set compid = '159967', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004433' where entryId = '89715329'
End Function
The Script is complete, exiting....