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

The Shares Amount is 287740000

The cusip is 007192107
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '007192107'
Number of Rows :1

update current13Fpositions set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' , percentOut = '0' where entryId = '130008323'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '007192107'
Number of Rows :27

update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '67501505'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '65243398'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '66624394'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '63608982'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '64866801'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '69863306'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '71153653'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '73308755'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '75044262'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '76972418'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '78835238'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '81169970'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '82232268'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '84848142'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '87178781'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '88469257'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '89272404'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '90646681'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '91144106'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '93275780'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '94892886'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '96890788'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '100266744'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '103197834'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '113510077'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '116040363'
update archive13F set compid = '159621', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004087' where entryId = '127769570'
End Function
The Script is complete, exiting....