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

The Shares Amount is 60840000

The cusip is 714270105
NOT OLD

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

End Function

Retrive Rows from Table:
select * from archive13F where cusip = '714270105'
Number of Rows :13

update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '67382364'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '65159357'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '63706871'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '68547724'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '70103340'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '73670297'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '74091395'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '76027116'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '77853352'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '79886757'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '81826350'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '83984415'
update archive13F set compid = '159833', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '9000004299' where entryId = '86294858'
End Function
The Script is complete, exiting....